[Argil-svn] SF.net SVN: argil: [483] trunk
Status: Alpha
Brought to you by:
tswicegood
|
From: <tsw...@us...> - 2007-02-16 00:31:14
|
Revision: 483
http://argil.svn.sourceforge.net/argil/?rev=483&view=rev
Author: tswicegood
Date: 2007-02-15 16:31:14 -0800 (Thu, 15 Feb 2007)
Log Message:
-----------
Final things to make Argil Pipes free
Modified Paths:
--------------
trunk/public/index.php
trunk/src/ArgilCore/Public/scripts/argil.moo.js
trunk/src/ArgilSample/sample.config.php
Modified: trunk/public/index.php
===================================================================
--- trunk/public/index.php 2007-02-14 03:31:04 UTC (rev 482)
+++ trunk/public/index.php 2007-02-16 00:31:14 UTC (rev 483)
@@ -3,12 +3,12 @@
$includePath = realpath(dirname(__FILE__) . '/../src');
set_include_path($includePath . ':' . $includePath . '/PEAR');
-require_once 'Pipes/Framework.php';
-require_once 'Pipes/Config.php';
-require_once 'Pipes/Route.php';
+require_once 'Argil/Framework.php';
+require_once 'Argil/Config.php';
+require_once 'Argil/Route.php';
session_start();
-$config = new Pipes_Config('PipesSample/sample.config.php');
-$pipes = new Pipes_Framework($config);
-echo $pipes->run(new Pipes_Route($config, $_SERVER['REQUEST_URI']));
+$config = new Argil_Config('ArgilSample/sample.config.php');
+$pipes = new Argil_Framework($config);
+echo $pipes->run(new Argil_Route($config, $_SERVER['REQUEST_URI']));
Modified: trunk/src/ArgilCore/Public/scripts/argil.moo.js
===================================================================
--- trunk/src/ArgilCore/Public/scripts/argil.moo.js 2007-02-14 03:31:04 UTC (rev 482)
+++ trunk/src/ArgilCore/Public/scripts/argil.moo.js 2007-02-16 00:31:14 UTC (rev 483)
@@ -1,8 +1,8 @@
-// Define the Pipes namespace object
-var Pipes = {};
+// Define the Argil namespace object
+var Argil = {};
-// standard factory for creating Pipes.objects.* objects
-Pipes.ajaxify = function(selector, options) {
+// standard factory for creating Argil.objects.* objects
+Argil.ajaxify = function(selector, options) {
// define options as an empty has if it's not set
options = options || {};
@@ -11,23 +11,23 @@
console.log(options['type']);
switch (options['type']) {
case 'RemoveModel' :
- return new Pipes.objects.Anchor.RemoveModel($(selector));
+ return new Argil.objects.Anchor.RemoveModel($(selector));
break;
case 'AddForm' :
- return new Pipes.objects.Anchor.AddForm($(selector));
+ return new Argil.objects.Anchor.AddForm($(selector));
break;
case 'EditForm' :
- return new Pipes.objects.Anchor.EditForm($(selector));
+ return new Argil.objects.Anchor.EditForm($(selector));
break;
case 'BrowseReplace' :
- return new Pipes.objects.Anchor.BrowseReplace($(selector));
+ return new Argil.objects.Anchor.BrowseReplace($(selector));
break;
}
- return new Pipes.objects.Anchor($(selector));
+ return new Argil.objects.Anchor($(selector));
break;
case 'form' :
@@ -35,23 +35,23 @@
// definte requireValidation based on whether it has the 'requireValidation'
// class if it's not explicitly set
options['requireValidation'] = options['requireValidation'] || $(selector).hasClass('requireValidation');
- return new Pipes.objects.Form(selector, options);
+ return new Argil.objects.Form(selector, options);
break;
-
+
case 'div' :
switch (options['type']) {
case 'AjaxifiedLinks' :
- return new Pipes.objects.Div.AjaxifiedLinks($(selector));
+ return new Argil.objects.Div.AjaxifiedLinks($(selector));
break;
}
default:
- Pipes.error('Unable to ajaxify [' + $(selector).getTag() + '] element');
+ Argil.error('Unable to ajaxify [' + $(selector).getTag() + '] element');
break;
}
};
-Pipes.error = function(msg) {
+Argil.error = function(msg) {
if (console != undefined) {
console.log(msg);
} else {
@@ -59,10 +59,10 @@
}
}
-Pipes.objects = {};
+Argil.objects = {};
-Pipes.objects.Div = {};
-Pipes.objects.Div.AjaxifiedLinks = new Class({
+Argil.objects.Div = {};
+Argil.objects.Div.AjaxifiedLinks = new Class({
initialize: function(div) {
this.element = div;
},
@@ -71,13 +71,13 @@
anchor.addEvent('click', function(event) {
switch (this.firstChild.nodeValue) {
case 'edit':
- Pipes.ajaxify(this, {type:'EditForm'}).process();
+ Argil.ajaxify(this, {type:'EditForm'}).process();
break;
case 'delete':
- Pipes.ajaxify(this, {type: 'RemoveModel'}).process();
+ Argil.ajaxify(this, {type: 'RemoveModel'}).process();
break;
default :
- Pipes.ajaxify(this, {type: 'BrowseReplace'}).process();
+ Argil.ajaxify(this, {type: 'BrowseReplace'}).process();
break;
}
@@ -87,7 +87,7 @@
}
});
-Pipes.objects.Anchor = new Class({
+Argil.objects.Anchor = new Class({
initialize: function(anchor) {
this.anchor = anchor;
},
@@ -97,7 +97,7 @@
}
});
-Pipes.objects.Anchor.RemoveModel = Pipes.objects.Anchor.extend({
+Argil.objects.Anchor.RemoveModel = Argil.objects.Anchor.extend({
initialize: function(anchor) {
this.parent(anchor);
this.row = $($($(this.anchor).parentNode).parentNode);
@@ -111,11 +111,11 @@
return false;
},
removeRow: function() {
- new Pipes.Fx.FadeOutAndRemove(this.row).toggle();
+ new Argil.Fx.FadeOutAndRemove(this.row).toggle();
},
});
-Pipes.objects.Anchor.AddForm = Pipes.objects.Anchor.extend({
+Argil.objects.Anchor.AddForm = Argil.objects.Anchor.extend({
initialize: function(anchor) {
this.parent(anchor);
},
@@ -128,11 +128,11 @@
return false;
},
onComplete: function(result) {
- new Pipes.Fx.FadeInAndShow(new Element('div').setHTML(result), {where: this.anchor.parentNode}).toggle();
+ new Argil.Fx.FadeInAndShow(new Element('div').setHTML(result), {where: this.anchor.parentNode}).toggle();
},
});
-Pipes.objects.Anchor.EditForm = Pipes.objects.Anchor.extend({
+Argil.objects.Anchor.EditForm = Argil.objects.Anchor.extend({
initialize: function(anchor) {
this.parent(anchor);
},
@@ -145,17 +145,17 @@
return false;
},
onComplete: function(result) {
- new Pipes.Fx.FadeInAndShow(new Element('div').setHTML(result), {where: 'dashboard_action'}).toggle();
+ new Argil.Fx.FadeInAndShow(new Element('div').setHTML(result), {where: 'dashboard_action'}).toggle();
}
});
-Pipes.objects.Anchor.BrowseReplace = Pipes.objects.Anchor.extend({
+Argil.objects.Anchor.BrowseReplace = Argil.objects.Anchor.extend({
initialize: function(anchor) {
this.parent(anchor);
},
process: function() {
var me = this;
- this.modal = new Pipes.objects.Modal($('dashboard_browse'));
+ this.modal = new Argil.objects.Modal($('dashboard_browse'));
this.modal.show();
new Ajax(
me.anchor.href + '?isAjax=true',
@@ -166,12 +166,12 @@
},
onComplete: function(result) {
$('dashboard_browse').setHTML(result);
- Pipes.ajaxify($('dashboard_browse'), {type:'AjaxifiedLinks'}).process();
+ Argil.ajaxify($('dashboard_browse'), {type:'AjaxifiedLinks'}).process();
}
});
-Pipes.objects.Modal = new Class({
+Argil.objects.Modal = new Class({
initialize: function(container) {
this.container = container;
this.container.setStyles({
@@ -191,14 +191,14 @@
this.container.removeChild(this.modal);
},
});
-Pipes.objects.Form = new Class({
+Argil.objects.Form = new Class({
requireValidation: false,
onComplete: function(result) {
// update dashboard if available, otherwise replace
var dashboard = $('dashboard_browse');
var div = new Element('div').setHTML(result);
if (dashboard !== false) {
- new Pipes.Fx.FadeOutAndRemove(this.form.parentNode.parentNode).toggle();
+ new Argil.Fx.FadeOutAndRemove(this.form.parentNode.parentNode).toggle();
div.id = 'dashboard_browse';
dashboard.replaceWith(div);
} else {
@@ -206,7 +206,7 @@
}
},
loading: function() {
- this.loadingModal = new Pipes.objects.Modal(this.form);
+ this.loadingModal = new Argil.objects.Modal(this.form);
this.loadingModal.show();
},
initialize: function(selector, options) {
@@ -231,8 +231,8 @@
});
-Pipes.Fx = {};
-Pipes.Fx.FadeOutAndRemove = new Class({
+Argil.Fx = {};
+Argil.Fx.FadeOutAndRemove = new Class({
initialize: function(selector, options) {
this.element = $(selector);
this.options = options || {};
@@ -246,9 +246,9 @@
}.delay(this.options.duration);
}
});
-Pipes.Fx.FadeOutAndRemove.implement(new Chain);
+Argil.Fx.FadeOutAndRemove.implement(new Chain);
-Pipes.Fx.FadeInAndShow = new Class({
+Argil.Fx.FadeInAndShow = new Class({
initialize: function(selector, options) {
this.element = $(selector);
this.options = options || {};
@@ -260,4 +260,4 @@
new Fx.Style(this.element, 'opacity').start(0,1);
}
});
-Pipes.Fx.FadeInAndShow.implement(new Chain);
+Argil.Fx.FadeInAndShow.implement(new Chain);
Modified: trunk/src/ArgilSample/sample.config.php
===================================================================
--- trunk/src/ArgilSample/sample.config.php 2007-02-14 03:31:04 UTC (rev 482)
+++ trunk/src/ArgilSample/sample.config.php 2007-02-16 00:31:14 UTC (rev 483)
@@ -11,8 +11,8 @@
);
if (defined('PIPES_TEST_MODE')) {
- $config['pdo'] = new PDO('mysql:host=localhost;dbname=argilsample_dev', 'root', '');
+ $config['pdo'] = new PDO('mysql:host=localhost;dbname=argil_sample_dev', 'root', '');
} else {
- $config['pdo'] = new PDO('mysql:host=localhost;dbname=argilsample', 'root', '');
+ $config['pdo'] = new PDO('mysql:host=localhost;dbname=argil_sample', 'root', '');
}
return $config;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|