Initial commit.

This commit is contained in:
yan
2011-11-17 15:45:33 -06:00
commit 882015bc6d
1819 changed files with 111625 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
var $actsAs = array(
'${1:BehaviorName}'${2: => ${3:ConfigForBehavior}}
);

View File

@@ -0,0 +1 @@
<?php echo $html->addCrumb('${1:CrumbName}'${2:, '${3:CrumbLink}'}) ?>

View File

@@ -0,0 +1,3 @@
function afterDelete() {
${1}
};

View File

@@ -0,0 +1,3 @@
function afterFind() {
${1}
};

View File

@@ -0,0 +1,3 @@
function afterFind(${1:$results}) {
${2}
};

View File

@@ -0,0 +1,3 @@
function afterSave(${1:$created}) {
${2}
};

View File

@@ -0,0 +1,4 @@
function _afterScaffoldSave($method) {
${1}
return true;
};

View File

@@ -0,0 +1,4 @@
function _afterScaffoldSaveError($method) {
${1}
return true;
};

View File

@@ -0,0 +1,3 @@
function beforeDelete() {
${1}
};

View File

@@ -0,0 +1,3 @@
function beforeFilter() {
${1}
};

View File

@@ -0,0 +1,3 @@
function beforeFind(${1:$queryData}) {
${2}
};

View File

@@ -0,0 +1,3 @@
function beforeRender() {
${1}
};

View File

@@ -0,0 +1,3 @@
function beforeSave() {
${1}
};

View File

@@ -0,0 +1,4 @@
function _beforeScaffold($method) {
${1}
return true;
};

View File

@@ -0,0 +1,3 @@
function beforeValidate() {
${1}
};

View File

@@ -0,0 +1,3 @@
var $belongsTo = array(
'${1:Model}'${2: => array(${3:'className' => '${4:${1:ModelClassName}}',}${5:'foreignKey' => '${6:foreign_key_field}'})}
);

View File

@@ -0,0 +1,3 @@
function beforeDelete($controller, $url, $status, $exit) {
${1}
};

View File

@@ -0,0 +1 @@
$config['${1:...}'] = ${2:'${3:...}'}

View File

@@ -0,0 +1 @@
echo $content_for_layout

View File

@@ -0,0 +1,4 @@
function initialize(&$controller) {
$this->controller = &$controller;
${1}
};

View File

@@ -0,0 +1 @@
$${1:varName} = ClassRegistry::init('${2:ClassName}');

View File

@@ -0,0 +1 @@
$this->data${1:['${2:...}']}

View File

@@ -0,0 +1 @@
debug(${1:$var});

View File

@@ -0,0 +1 @@
$this->${1:Model}->deleteAll(${2:$conditions}${3:, ${4: $cascade}})

View File

@@ -0,0 +1 @@
<?php echo $this->element('${1:path/to/element}') ?>

View File

@@ -0,0 +1 @@
<?php echo $form->checkbox(${1:'${2:name}'}) ?>

View File

@@ -0,0 +1 @@
<?php echo $form->create(${1:name}') ?>

View File

@@ -0,0 +1 @@
<?php echo $form->end(${2:'${3:SubmitButtonValue}'}) ?>

View File

@@ -0,0 +1 @@
<?php echo $form->error(${1:'$2'}, ${3:'$4'}) ?>

View File

@@ -0,0 +1 @@
<?php echo $form->file(${1:'${2:name}'}) ?>

View File

@@ -0,0 +1 @@
<?php echo $form->hidden(${1:'${2:name}'}) ?>

View File

@@ -0,0 +1 @@
<?php echo $form->input(${1:'${2:name}'}) ?>

View File

@@ -0,0 +1 @@
<?php echo $form->label(${1:'${2:fieldName}'}, ${3:'${4:labelText}'}) ?>

View File

@@ -0,0 +1 @@
<?php echo $form->password(${1:'${2:name}'}) ?>

View File

@@ -0,0 +1 @@
<?php echo $form->radio(${1:'${2:name}'}) ?>

View File

@@ -0,0 +1 @@
<?php echo $form->select(${1:'${2:name}'}, ${3:$options}, ${4:$selected}, ${5:$attributes}, ${6:$showEmpty}) ?>

View File

@@ -0,0 +1 @@
<?php echo $form->submit(${1:'${2:name}'}) ?>

View File

@@ -0,0 +1 @@
<?php echo $form->submitImage(${1:$path}) ?>

View File

@@ -0,0 +1 @@
<?php echo $form->textarea(${1:'${2:name}'}) ?>

View File

@@ -0,0 +1 @@
<?php echo $form->text(${1:'${2:name}'}) ?>

View File

@@ -0,0 +1 @@
<?php echo $html->getCrumbs(${1:'${2:«separator»}'}) ?>

View File

@@ -0,0 +1,3 @@
var $hasAndBelongsToMany = array(
'${1:Model}'${2: => array(${3:'className' => '${4:${1:ModelClassName}}',}${5:'foreignKey' => '${6:foreign_key_field}'})}
);

View File

@@ -0,0 +1,3 @@
var $hasMany = array(
'${1:Model}'${2: => array(${3:'className' => '${4:${1:ModelClassName}}',}${5:'foreignKey' => '${6:foreign_key_field}'})}
);

View File

@@ -0,0 +1,3 @@
var $hasOne = array(
'${1:Model}'${2: => array(${3:'className' => '${4:${1:ModelClassName}}',}${5:'foreignKey' => '${6:foreign_key_field}'})}
);

View File

@@ -0,0 +1 @@
App::import('${1:Core}', '${2:ClassName}');

View File

@@ -0,0 +1 @@
Inflector::camelize(${1:$word})

View File

@@ -0,0 +1 @@
Inflector::classify(${1:$word})

View File

@@ -0,0 +1 @@
Inflector::humanize(${1:$word})

View File

@@ -0,0 +1 @@
Inflector::pluralize(${1:$word})

View File

@@ -0,0 +1 @@
Inflector::singularize(${1:$word})

View File

@@ -0,0 +1 @@
Inflector::slug(${1:$word})

View File

@@ -0,0 +1 @@
Inflector::tabelize(${1:$word})

View File

@@ -0,0 +1 @@
Inflector::underscore(${1:$word})

View File

@@ -0,0 +1 @@
Inflector::variable(${1:$word})

View File

@@ -0,0 +1 @@
var $layout = ${1:'${2}'};

View File

@@ -0,0 +1 @@
var $layout = ${1:}'${2:layout_name}';

View File

@@ -0,0 +1 @@
<?php echo $html->link('${1:Link Title}', array('action' => '${2:action_name}')) ?>

View File

@@ -0,0 +1 @@
<?php echo $html->link('${1:Link Title}', array('controller' => '${2:controller_name}')) ?>

View File

@@ -0,0 +1 @@
<?php echo $html->link('${1:Link Title}', array('controller' => '${2:controller_name}', 'action' => '${3:action_name}')) ?>

View File

@@ -0,0 +1 @@
<?php echo $html->link('${1:Link Title}', '${2:/controller/action}') ?>

View File

@@ -0,0 +1 @@
<?php echo $html->meta('atom', ${1:$this->webroot('${2:atom.xml}')}) ?>

View File

@@ -0,0 +1 @@
$this->${1:Model}->del(${2:$id}${3:, ${4: $cascade}})

View File

@@ -0,0 +1 @@
<?php echo $html->meta('description', ${1:'${2:your description here}'}) ?>

View File

@@ -0,0 +1 @@
$this->${1:Model}->find(${2:...})

View File

@@ -0,0 +1 @@
$this->${1:Model}->find('all', ${2:...})

View File

@@ -0,0 +1 @@
$this->${1:Model}->findBy${2:ColumnName}(${3:...})

View File

@@ -0,0 +1 @@
$this->${1:Model}->find('count', ${2:...})

View File

@@ -0,0 +1 @@
$this->${1:Model}->find('first', ${2:...})

View File

@@ -0,0 +1 @@
$this->${1:Model}->find('list', ${2:...})

View File

@@ -0,0 +1 @@
$this->${1:Model}->find('neighbors', ${2:...})

View File

@@ -0,0 +1 @@
$this->${1:Model}->find('threaded', ${2:...})

View File

@@ -0,0 +1 @@
<?php echo $html->meta('icon', ${1:$this->webroot('${2:favicon.ico}')}) ?>

View File

@@ -0,0 +1 @@
$this->${1:Model}->id = ${2:$id};

View File

@@ -0,0 +1,5 @@
if ($this->${1:Model}->save(${2:$this->data})) {
$3
} else {
$4
};

View File

@@ -0,0 +1 @@
<?php echo $html->meta('keywords', ${1:'${2:your, keywords, here}'}) ?>

View File

@@ -0,0 +1 @@
$this->${1:Model}->remove(${2:$id}${3:, ${4: $cascade})

View File

@@ -0,0 +1 @@
<?php echo $html->meta('rss', ${1:$this->webroot('${2:feed.rss}')}) ?>

View File

@@ -0,0 +1 @@
$this->${1:Model}->save(${2:$this->data})

View File

@@ -0,0 +1 @@
$this->${1:Model}->saveField(${2:'$3'}, ${4:$fieldValue})

View File

@@ -0,0 +1 @@
$this->${1:Model}->updateAll(${2:$fields}${3:, ${4: $conditions}})

View File

@@ -0,0 +1,3 @@
class ${1:My}Behavior extends ModelBehavior {
${2:// My Code ...}
};

View File

@@ -0,0 +1,4 @@
class ${1:My}Component extends Object {
${2:var $controller;}
${3}
};

View File

@@ -0,0 +1,3 @@
class ${1:My}Controller extends AppController {
${2:// My Code ...}
};

View File

@@ -0,0 +1,3 @@
class ${1:My}Helper extends AppHelper {
${2:// My Code ...}
};

View File

@@ -0,0 +1,3 @@
class ${1:My}Model extends AppModel {
${2:// My Code ...}
};

View File

@@ -0,0 +1,3 @@
function onError() {
${1}
};

View File

@@ -0,0 +1 @@
$this->params['${1:...}']

View File

@@ -0,0 +1 @@
pr(${1:$var});

View File

@@ -0,0 +1 @@
var $this->pageTitle = ${1:'${2:Page Title}'};

View File

@@ -0,0 +1 @@
'rule' => 'alphaNumeric'

View File

@@ -0,0 +1 @@
'rule' => array('between', ${1:min}, ${2:max})

View File

@@ -0,0 +1 @@
'rule' => 'blank'

View File

@@ -0,0 +1 @@
'rule' => 'boolean'

View File

@@ -0,0 +1 @@
'rule' => array('cc', '${1:visa}')

View File

@@ -0,0 +1 @@
'rule' => array('comparison', '${1:an operator}'${2:, '{3:a second value}'})

View File

@@ -0,0 +1 @@
'rule' => array('custom', '${1:regular expression}')

View File

@@ -0,0 +1 @@
'rule' => array('date', '${1:Ymd}')

View File

@@ -0,0 +1 @@
'rule' => 'decimal'

View File

@@ -0,0 +1 @@
$this->redirect(array('action' => '${1:action_name}'));

View File

@@ -0,0 +1 @@
$this->redirect(array('controller' => '${1:controller_name}'));

Some files were not shown because too many files have changed in this diff Show More