Changeset 232
- Timestamp:
- 05/14/07 18:37:55 (2 years ago)
- Files:
-
- trunk/lib/Ak.php (modified) (1 diff)
- trunk/lib/AkActionView/TemplateEngines/AkSintags/AkSintagsParser.php (modified) (1 diff)
- trunk/lib/AkActiveRecord.php (modified) (1 diff)
- trunk/lib/AkActiveRecord/AkObserver.php (modified) (1 diff)
- trunk/lib/AkBaseModel.php (modified) (2 diffs)
- trunk/script/generators/scaffold/scaffold_generator.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/Ak.php
r226 r232 1261 1261 $models = array(); 1262 1262 foreach ($args as $arg){ 1263 $model_name = AkInflector:: modulize($arg);1263 $model_name = AkInflector::camelize($arg); 1264 1264 $model = AkInflector::toModelFilename($model_name); 1265 1265 if(file_exists($model)){ trunk/lib/AkActionView/TemplateEngines/AkSintags/AkSintagsParser.php
r229 r232 341 341 return true; 342 342 }else{ 343 trigger_error(Ak::t('Could not find a helper to handle the method "%method" you called using Sintagsin your view', array('%method'=>$method_name)), E_USER_NOTICE);343 trigger_error(Ak::t('Could not find a helper to handle the method "%method" you called in your view', array('%method'=>$method_name)), E_USER_NOTICE); 344 344 } 345 345 return false; trunk/lib/AkActiveRecord.php
r225 r232 1285 1285 if(!empty($record[$inheritance_column])){ 1286 1286 $inheritance_column = $record[$inheritance_column]; 1287 $inheritance_model_name = AkInflector:: modulize($inheritance_column);1287 $inheritance_model_name = AkInflector::camelize($inheritance_column); 1288 1288 @require_once(AkInflector::toModelFilename($inheritance_model_name)); 1289 1289 if(!class_exists($inheritance_model_name)){ trunk/lib/AkActiveRecord/AkObserver.php
r207 r232 136 136 foreach ($models as $class_name) 137 137 { 138 $class_name = AkInflector:: modulize($class_name);138 $class_name = AkInflector::camelize($class_name); 139 139 include_once(AkInflector::toModelFilename($class_name)); 140 140 eval("\$model =& new $class_name();"); trunk/lib/AkBaseModel.php
r218 r232 110 110 $this->_parentModelName = $model_name; 111 111 }else{ 112 $class_name = AkInflector:: modulize(get_parent_class($this));112 $class_name = AkInflector::camelize(get_parent_class($this)); 113 113 if(!AK_PHP5){ 114 114 $included_models = $this->_getIncludedModelNames(); … … 141 141 foreach ($included_files as $file_name){ 142 142 if(strstr($file_name,AK_MODELS_DIR)){ 143 $models[] = AkInflector:: modulize(str_replace(array(AK_MODELS_DIR.DS,'.php'),'',$file_name));143 $models[] = AkInflector::camelize(str_replace(array(AK_MODELS_DIR.DS,'.php'),'',$file_name)); 144 144 } 145 145 } trunk/script/generators/scaffold/scaffold_generator.php
r100 r232 24 24 function cast() 25 25 { 26 $this->model_name = AkInflector:: modulize($this->model_name);26 $this->model_name = AkInflector::camelize($this->model_name); 27 27 $this->model_file_path = AkInflector::toModelFilename($this->model_name); 28 28 $this->controller_name = empty($this->controller_name) ? $this->model_name : (AkInflector::camelize($this->controller_name));
