diff --git a/cake/console/libs/acl.php b/cake/console/libs/acl.php index 13796f8cc..6bd6bc0bf 100644 --- a/cake/console/libs/acl.php +++ b/cake/console/libs/acl.php @@ -236,7 +236,7 @@ class AclShell extends Shell { * @param integer $indent indent level. * @return void * @access protected - **/ + */ function _outputNode($class, $node, $indent) { $indent = str_repeat(' ', $indent); $data = $node[$class]; @@ -521,7 +521,7 @@ class AclShell extends Shell { * * @param string $identifier Identifier to parse * @return mixed a string for aliases, and an array for model.foreignKey - **/ + */ function parseIdentifier($identifier) { if (preg_match('/^([\w]+)\.(.*)$/', $identifier, $matches)) { return array( @@ -539,7 +539,7 @@ class AclShell extends Shell { * @param string $class Class type you want (Aro/Aco) * @param mixed $identifier A mixed identifier for finding the node. * @return int Integer of NodeId. Will trigger an error if nothing is found. - **/ + */ function _getNodeId($class, $identifier) { $node = $this->Acl->{$class}->node($identifier); if (empty($node)) { diff --git a/cake/console/libs/schema.php b/cake/console/libs/schema.php index 78fdf0ecb..b6c69708a 100644 --- a/cake/console/libs/schema.php +++ b/cake/console/libs/schema.php @@ -242,7 +242,7 @@ class SchemaShell extends Shell { * Run database create commands. Alias for run create. * * @return void - **/ + */ function create() { list($Schema, $table) = $this->_loadSchema(); $this->__create($Schema, $table); @@ -252,7 +252,7 @@ class SchemaShell extends Shell { * Run database create commands. Alias for run create. * * @return void - **/ + */ function update() { list($Schema, $table) = $this->_loadSchema(); $this->__update($Schema, $table); @@ -262,7 +262,7 @@ class SchemaShell extends Shell { * Prepares the Schema objects for database operations. * * @return void - **/ + */ function _loadSchema() { $name = $plugin = null; if (isset($this->params['name'])) { diff --git a/cake/console/libs/shell.php b/cake/console/libs/shell.php index 6452a8a9b..0a481db60 100644 --- a/cake/console/libs/shell.php +++ b/cake/console/libs/shell.php @@ -642,7 +642,7 @@ class Shell extends Object { * * @param string $pluginName Name of the plugin you want ie. DebugKit * @return string $path path to the correct plugin. - **/ + */ function _pluginPath($pluginName) { return App::pluginPath($pluginName); } diff --git a/cake/console/libs/tasks/controller.php b/cake/console/libs/tasks/controller.php index cc88dcd42..9c6fd14e5 100644 --- a/cake/console/libs/tasks/controller.php +++ b/cake/console/libs/tasks/controller.php @@ -113,7 +113,7 @@ class ControllerTask extends Shell { * * @access public * @return void - **/ + */ function all() { $this->interactive = false; $this->listAll($this->connection, false); @@ -219,7 +219,7 @@ class ControllerTask extends Shell { * Confirm a to be baked controller with the user * * @return void - **/ + */ function confirmController($controllerName, $useDynamicScaffold, $helpers, $components) { $this->out(); $this->hr(); @@ -257,7 +257,7 @@ class ControllerTask extends Shell { * Interact with the user and ask about which methods (admin or regular they want to bake) * * @return array Array containing (bakeRegular, bakeAdmin) answers - **/ + */ function _askAboutMethods() { $wannaBakeCrud = $this->in( __("Would you like to create some basic class methods \n(index(), add(), view(), edit())?", true), @@ -348,7 +348,7 @@ class ControllerTask extends Shell { * Interact with the user and get a list of additional helpers * * @return array Helpers that the user wants to use. - **/ + */ function doHelpers() { return $this->_doPropertyChoices( __("Would you like this controller to use other helpers\nbesides HtmlHelper and FormHelper?", true), @@ -360,7 +360,7 @@ class ControllerTask extends Shell { * Interact with the user and get a list of additional components * * @return array Components the user wants to use. - **/ + */ function doComponents() { return $this->_doPropertyChoices( __("Would you like this controller to use any components?", true), @@ -374,7 +374,7 @@ class ControllerTask extends Shell { * @param string $prompt A yes/no question to precede the list * @param sting $example A question for a comma separated list, with examples. * @return array Array of values for property. - **/ + */ function _doPropertyChoices($prompt, $example) { $proceed = $this->in($prompt, array('y','n'), 'n'); $property = array(); diff --git a/cake/console/libs/tasks/db_config.php b/cake/console/libs/tasks/db_config.php index 6635fe8c0..b9253558a 100644 --- a/cake/console/libs/tasks/db_config.php +++ b/cake/console/libs/tasks/db_config.php @@ -53,7 +53,7 @@ class DbConfigTask extends Shell { * Used for testing. * * @var string - **/ + */ var $databaseClassName = 'DATABASE_CONFIG'; /** @@ -351,7 +351,7 @@ class DbConfigTask extends Shell { * Get a user specified Connection name * * @return void - **/ + */ function getConfig() { App::import('Model', 'ConnectionManager', false); diff --git a/cake/console/libs/tasks/fixture.php b/cake/console/libs/tasks/fixture.php index 98c1ecea8..82dec5869 100644 --- a/cake/console/libs/tasks/fixture.php +++ b/cake/console/libs/tasks/fixture.php @@ -54,14 +54,14 @@ class FixtureTask extends Shell { * The db connection being used for baking * * @var string - **/ + */ var $connection = null; /** * Schema instance * * @var object - **/ + */ var $_Schema = null; /** @@ -103,7 +103,7 @@ class FixtureTask extends Shell { * * @access public * @return void - **/ + */ function all() { $this->interactive = false; $this->Model->interactive = false; @@ -140,7 +140,7 @@ class FixtureTask extends Shell { * * @param string $modelName Name of model you are dealing with. * @return array Array of import options. - **/ + */ function importOptions($modelName) { $options = array(); $doSchema = $this->in(__('Would you like to import schema for this fixture?', true), array('y', 'n'), 'n'); @@ -230,7 +230,7 @@ class FixtureTask extends Shell { * @param string $fixture Contents of the fixture file. * @access public * @return void - **/ + */ function generateFixtureFile($model, $otherVars) { $defaults = array('table' => null, 'schema' => null, 'records' => null, 'import' => null, 'fields' => null); $vars = array_merge($defaults, $otherVars); @@ -255,7 +255,7 @@ class FixtureTask extends Shell { * * @param array $table Table schema array * @return string fields definitions - **/ + */ function _generateSchema($tableInfo) { $schema = $this->_Schema->generateTable('f', $tableInfo); return substr($schema, 10, -2); @@ -266,7 +266,7 @@ class FixtureTask extends Shell { * * @param array $table Table schema array * @return array Array of records to use in the fixture. - **/ + */ function _generateRecords($tableInfo, $recordCount = 1) { $records = array(); for ($i = 0; $i < $recordCount; $i++) { @@ -337,7 +337,7 @@ class FixtureTask extends Shell { * * @param array $records Array of records to be converted to string * @return string A string value of the $records array. - **/ + */ function _makeRecordString($records) { $out = "array(\n"; foreach ($records as $record) { @@ -360,7 +360,7 @@ class FixtureTask extends Shell { * @param string $modelName name of the model to take records from. * @param string $useTable Name of table to use. * @return array Array of records. - **/ + */ function _getRecordsFromTable($modelName, $useTable = null) { if ($this->interactive) { $condition = null; diff --git a/cake/console/libs/tasks/model.php b/cake/console/libs/tasks/model.php index 8d616a71a..30cce0e0d 100644 --- a/cake/console/libs/tasks/model.php +++ b/cake/console/libs/tasks/model.php @@ -64,14 +64,14 @@ class ModelTask extends Shell { * Holds tables found on connection. * * @var array - **/ + */ var $__tables = array(); /** * Holds validation method map. * * @var array - **/ + */ var $__validations = array(); /** @@ -109,7 +109,7 @@ class ModelTask extends Shell { * Bake all models at once. * * @return void - **/ + */ function all() { $this->listAll($this->connection, false); $unitTestExists = $this->_checkUnitTest(); @@ -129,7 +129,7 @@ class ModelTask extends Shell { * * @param string $className Name of class you want model to be. * @return object Model instance - **/ + */ function &_getModelObject($className) { $object = new Model(array('name' => $className, 'ds' => $this->connection)); return $object; @@ -142,7 +142,7 @@ class ModelTask extends Shell { * @param string $prompt Prompt to use for options list. * @param integer $default The default option for the given prompt. * @return result of user choice. - **/ + */ function inOptions($options, $prompt = null, $default = null) { $valid = false; $max = count($options); @@ -262,7 +262,7 @@ class ModelTask extends Shell { * @param string $associations Collection of associations. * @access protected * @return void - **/ + */ function _printAssociation($modelName, $type, $associations) { if (!empty($associations[$type])) { for ($i = 0; $i < count($associations[$type]); $i++) { @@ -278,7 +278,7 @@ class ModelTask extends Shell { * @param array $fields Array of fields that might have a primary key. * @return string Name of field that is a primary key. * @access public - **/ + */ function findPrimaryKey($fields) { foreach ($fields as $name => $field) { if (isset($field['key']) && $field['key'] == 'primary') { @@ -293,7 +293,7 @@ class ModelTask extends Shell { * * @param array $fields Array of fields to look for and choose as a displayField * @return mixed Name of field to use for displayField or false if the user declines to choose - **/ + */ function findDisplayField($fields) { $fieldNames = array_keys($fields); $prompt = __("A displayField could not be automatically detected\nwould you like to choose one?", true); @@ -337,7 +337,7 @@ class ModelTask extends Shell { * Populate the __validations array * * @return void - **/ + */ function initValidations() { $options = $choices = array(); if (class_exists('Validation')) { @@ -363,7 +363,7 @@ class ModelTask extends Shell { * @param string $fieldName Name of field to be validated. * @param array $metaData metadata for field * @return array Array of validation for the field. - **/ + */ function fieldValidation($fieldName, $metaData, $primaryKey = 'id') { $defaultChoice = count($this->__validations); $validate = $alreadyChosen = array(); @@ -484,7 +484,7 @@ class ModelTask extends Shell { * @param object $model Model instance of model being generated. * @param array $associations Array of inprogress associations * @return array $associations with belongsTo added in. - **/ + */ function findBelongsTo(&$model, $associations) { $fields = $model->schema(); foreach ($fields as $fieldName => $field) { @@ -513,7 +513,7 @@ class ModelTask extends Shell { * @param object $model Model instance being generated * @param array $associations Array of inprogress associations * @return array $associations with hasOne and hasMany added in. - **/ + */ function findHasOneAndMany(&$model, $associations) { $foreignKey = $this->_modelKey($model->name); foreach ($this->__tables as $otherTable) { @@ -556,7 +556,7 @@ class ModelTask extends Shell { * @param object $model Model instance being generated * @param array $associations Array of inprogress associations * @return array $associations with hasAndBelongsToMany added in. - **/ + */ function findHasAndBelongsToMany(&$model, $associations) { $foreignKey = $this->_modelKey($model->name); foreach ($this->__tables as $otherTable) { @@ -596,7 +596,7 @@ class ModelTask extends Shell { * @param array $model Temporary Model instance. * @param array $associations Array of associations to be confirmed. * @return array Array of confirmed associations - **/ + */ function confirmAssociations(&$model, $associations) { foreach ($associations as $type => $settings) { if (!empty($associations[$type])) { @@ -624,7 +624,7 @@ class ModelTask extends Shell { * @param object $model Temporary model instance * @param array $associations Array of associations. * @return array Array of associations. - **/ + */ function doMoreAssociations($model, $associations) { $prompt = __('Would you like to define some additional model associations?', true); $wannaDoMoreAssoc = $this->in($prompt, array('y','n'), 'n'); @@ -689,7 +689,7 @@ class ModelTask extends Shell { * Finds all possible keys to use on custom associations. * * @return array array of tables and possible keys - **/ + */ function _generatePossibleKeys() { $possible = array(); foreach ($this->__tables as $otherTable) { @@ -782,7 +782,7 @@ class ModelTask extends Shell { * @param string $modelName Name of the model you want a table for. * @param string $useDbConfig Name of the database config you want to get tables from. * @return void - **/ + */ function getTable($modelName, $useDbConfig = null) { if (!isset($useDbConfig)) { $useDbConfig = $this->connection; @@ -811,7 +811,7 @@ class ModelTask extends Shell { * * @param string $useDbConfig Connection name to scan. * @return array Array of tables in the database. - **/ + */ function getAllTables($useDbConfig = null) { if (!isset($useDbConfig)) { $useDbConfig = $this->connection; @@ -906,7 +906,7 @@ class ModelTask extends Shell { * @access public * @return void * @see FixtureTask::bake - **/ + */ function bakeFixture($className, $useTable = null) { $this->Fixture->connection = $this->connection; $this->Fixture->plugin = $this->plugin; diff --git a/cake/console/libs/tasks/plugin.php b/cake/console/libs/tasks/plugin.php index 05309bdcc..03b563dc1 100644 --- a/cake/console/libs/tasks/plugin.php +++ b/cake/console/libs/tasks/plugin.php @@ -204,7 +204,7 @@ class PluginTask extends Shell { * find and change $this->path to the user selection * * @return void - **/ + */ function findPath($pathOptions) { $valid = false; $max = count($pathOptions); diff --git a/cake/console/libs/tasks/project.php b/cake/console/libs/tasks/project.php index 6194fab31..196273fb3 100644 --- a/cake/console/libs/tasks/project.php +++ b/cake/console/libs/tasks/project.php @@ -30,7 +30,7 @@ class ProjectTask extends Shell { * configs path (used in testing). * * @var string - **/ + */ var $configPath = null; /** diff --git a/cake/console/libs/tasks/template.php b/cake/console/libs/tasks/template.php index fcf835492..422b775c1 100644 --- a/cake/console/libs/tasks/template.php +++ b/cake/console/libs/tasks/template.php @@ -23,7 +23,7 @@ class TemplateTask extends Shell { * variables to add to template scope * * @var array - **/ + */ var $templateVars = array(); /** @@ -31,7 +31,7 @@ class TemplateTask extends Shell { * Contains a list of $theme => $path * * @var array - **/ + */ var $templatePaths = array(); /** @@ -39,7 +39,7 @@ class TemplateTask extends Shell { * * @access public * @return void - **/ + */ function initialize() { $this->templatePaths = $this->_findThemes(); } @@ -50,7 +50,7 @@ class TemplateTask extends Shell { * Bake themes are directories not named `skel` inside a `vendors/shells/templates` path. * * @return array Array of bake themes that are installed. - **/ + */ function _findThemes() { $paths = App::path('shells'); $core = array_pop($paths); @@ -128,7 +128,7 @@ class TemplateTask extends Shell { * @param string $vars Additional vars to set to template scope. * @access public * @return contents of generated code template - **/ + */ function generate($directory, $filename, $vars = null) { if ($vars !== null) { $this->set($vars); @@ -156,7 +156,7 @@ class TemplateTask extends Shell { * If there is more than one installed theme user interaction will happen * * @return string returns the path to the selected theme. - **/ + */ function getThemePath() { if (count($this->templatePaths) == 1) { $paths = array_values($this->templatePaths); @@ -193,7 +193,7 @@ class TemplateTask extends Shell { * @param string $filename lower_case_underscored filename you want. * @access public * @return string filename will exit program if template is not found. - **/ + */ function _findTemplate($path, $directory, $filename) { $themeFile = $path . $directory . DS . $filename . '.ctp'; if (file_exists($themeFile)) { diff --git a/cake/console/libs/tasks/test.php b/cake/console/libs/tasks/test.php index b4a1929da..06cf9c5bb 100644 --- a/cake/console/libs/tasks/test.php +++ b/cake/console/libs/tasks/test.php @@ -46,28 +46,28 @@ class TestTask extends Shell { * Tasks used. * * @var array - **/ + */ var $tasks = array('Template'); /** * class types that methods can be generated for * * @var array - **/ + */ var $classTypes = array('Model', 'Controller', 'Component', 'Behavior', 'Helper'); /** * Internal list of fixtures that have been added so far. * * @var string - **/ + */ var $_fixtures = array(); /** * Flag for interactive mode * * @var boolean - **/ + */ var $interactive = false; /** @@ -164,7 +164,7 @@ class TestTask extends Shell { * Interact with the user and get their chosen type. Can exit the script. * * @return string Users chosen type. - **/ + */ function getObjectType() { $this->hr(); $this->out(__("Select an object type:", true)); @@ -188,7 +188,7 @@ class TestTask extends Shell { * * @param string $objectType Type of object to list classes for i.e. Model, Controller. * @return string Class name the user chose. - **/ + */ function getClassName($objectType) { $options = App::objects(strtolower($objectType)); $this->out(sprintf(__('Choose a %s class', true), $objectType)); @@ -209,7 +209,7 @@ class TestTask extends Shell { * Currently only model, and controller are supported * * @return boolean - **/ + */ function typeCanDetectFixtures($type) { $type = strtolower($type); return ($type == 'controller' || $type == 'model'); @@ -219,7 +219,7 @@ class TestTask extends Shell { * Check if a class with the given type is loaded or can be loaded. * * @return boolean - **/ + */ function isLoadableClass($type, $class) { return App::import($type, $class); } @@ -229,7 +229,7 @@ class TestTask extends Shell { * So that fixtures can be detected * * @return object - **/ + */ function &buildTestSubject($type, $class) { ClassRegistry::flush(); App::import($type, $class); @@ -246,7 +246,7 @@ class TestTask extends Shell { * Gets the real class name from the cake short form. * * @return string Real classname - **/ + */ function getRealClassName($type, $class) { if (strtolower($type) == 'model') { return $class; @@ -260,7 +260,7 @@ class TestTask extends Shell { * * @param string $className Name of class to look at. * @return array Array of method names. - **/ + */ function getTestableMethods($className) { $classMethods = get_class_methods($className); $parentMethods = get_class_methods(get_parent_class($className)); @@ -280,7 +280,7 @@ class TestTask extends Shell { * * @param object The object you want to generate fixtures for. * @return array Array of fixtures to be included in the test. - **/ + */ function generateFixtureList(&$subject) { $this->_fixtures = array(); if (is_a($subject, 'Model')) { @@ -297,7 +297,7 @@ class TestTask extends Shell { * * @return void * @access protected - **/ + */ function _processModel(&$subject) { $this->_addFixture($subject->name); $associated = $subject->getAssociated(); @@ -321,7 +321,7 @@ class TestTask extends Shell { * * @return void * @access protected - **/ + */ function _processController(&$subject) { $subject->constructClasses(); $models = array(Inflector::classify($subject->name)); @@ -339,7 +339,7 @@ class TestTask extends Shell { * * @return void * @access protected - **/ + */ function _addFixture($name) { $parent = get_parent_class($name); $prefix = 'app.'; @@ -355,7 +355,7 @@ class TestTask extends Shell { * Interact with the user to get additional fixtures they want to use. * * @return void - **/ + */ function getUserFixtures() { $proceed = $this->in(__('Bake could not detect fixtures, would you like to add some?', true), array('y','n'), 'n'); $fixtures = array(); @@ -373,7 +373,7 @@ class TestTask extends Shell { * Controllers require a mock class. * * @return boolean - **/ + */ function hasMockClass($type) { $type = strtolower($type); return $type == 'controller'; @@ -383,7 +383,7 @@ class TestTask extends Shell { * Generate a constructor code snippet for the type and classname * * @return string Constructor snippet for the thing you are building. - **/ + */ function generateConstructor($type, $fullClassName) { $type = strtolower($type); if ($type == 'model') { @@ -401,7 +401,7 @@ class TestTask extends Shell { * and get the plugin path if needed. * * @return string filename the test should be created on - **/ + */ function testCaseFileName($type, $className) { $path = $this->path; if (isset($this->plugin)) { @@ -418,7 +418,7 @@ class TestTask extends Shell { * Show help file. * * @return void - **/ + */ function help() { $this->hr(); $this->out("Usage: cake bake test "); diff --git a/cake/console/libs/tasks/view.php b/cake/console/libs/tasks/view.php index 1bad40f5a..5a1b0a0b3 100644 --- a/cake/console/libs/tasks/view.php +++ b/cake/console/libs/tasks/view.php @@ -144,7 +144,7 @@ class ViewTask extends Shell { * Get a list of actions that can / should have views baked for them. * * @return array Array of action names that should be baked - **/ + */ function _methodsToBake() { $methods = array_diff( array_map('strtolower', get_class_methods($this->controllerName . 'Controller')), @@ -176,7 +176,7 @@ class ViewTask extends Shell { * Bake All views for All controllers. * * @return void - **/ + */ function all() { $this->Controller->interactive = false; $tables = $this->Controller->listAll($this->connection, false); @@ -308,7 +308,7 @@ class ViewTask extends Shell { * * @param array $actions Array of actions to make files for. * @return void - **/ + */ function bakeActions($actions, $vars) { foreach ($actions as $action) { $content = $this->getContent($action, $vars); @@ -320,7 +320,7 @@ class ViewTask extends Shell { * handle creation of baking a custom action view file * * @return void - **/ + */ function customAction() { $action = ''; while ($action == '') { diff --git a/cake/libs/cake_log.php b/cake/libs/cake_log.php index 571cb1c4b..a2300abb2 100644 --- a/cake/libs/cake_log.php +++ b/cake/libs/cake_log.php @@ -60,7 +60,7 @@ class CakeLog { * * @var array * @access protected - **/ + */ var $_streams = array(); /** @@ -68,7 +68,7 @@ class CakeLog { * * @return void * @static - **/ + */ function &getInstance() { static $instance = array(); if (!isset($instance[0])) { @@ -85,7 +85,7 @@ class CakeLog { * @param array $config Array of configuration information for the logger * @return boolean success of configuration. * @static - **/ + */ function config($key, $config) { if (empty($config['engine'])) { trigger_error(__('Missing logger classname', true), E_USER_WARNING); @@ -107,7 +107,7 @@ class CakeLog { * * @return mixed boolean false on any failures, string of classname to use if search was successful.\ * @access protected - **/ + */ function _getLogger($loggerName) { $plugin = null; if (strpos($loggerName, '.') !== false) { @@ -139,7 +139,7 @@ class CakeLog { * * @return array * @static - **/ + */ function streams() { $self = CakeLog::getInstance(); return array_keys($self->_streams); @@ -152,7 +152,7 @@ class CakeLog { * @param string $keyname Key name of callable to remove. * @return void * @static - **/ + */ function remove($streamName) { $self = CakeLog::getInstance(); unset($self->_streams[$streamName]); @@ -167,7 +167,7 @@ class CakeLog { * @param array $config Array of config information for the LogStream * @return boolean success * @static - **/ + */ function addStream($key, $config) { $self = CakeLog::getInstance(); $self->_streams[$key] = $config; @@ -178,7 +178,7 @@ class CakeLog { * * @return void * @access protected - **/ + */ function _autoConfig() { if (!class_exists('FileLog')) { App::import('Core', 'log/FileLog'); @@ -235,7 +235,7 @@ class CakeLog { * @param integer $line Line that triggered the error * @param array $context Context * @return void - **/ + */ function handleError($code, $description, $file = null, $line = null, $context = null) { if ($code === 2048 || $code === 8192) { return; diff --git a/cake/libs/cake_session.php b/cake/libs/cake_session.php index 357c2ec67..957af54ff 100644 --- a/cake/libs/cake_session.php +++ b/cake/libs/cake_session.php @@ -244,7 +244,7 @@ class CakeSession extends Object { * * @return boolean * @deprecated Use CakeSession::delete instead - **/ + */ function del($name) { trigger_error('CakeSession::del() is deprecated, use CakeSession::delete() instead.', E_USER_WARNING); return $this->delete($name); diff --git a/cake/libs/configure.php b/cake/libs/configure.php index 3bdc14e8f..fb86ed3b3 100644 --- a/cake/libs/configure.php +++ b/cake/libs/configure.php @@ -685,7 +685,7 @@ class App extends Object { * * @param string $plugin CamelCased plugin name to find the path of. * @return string full path to the plugin. - **/ + */ function pluginPath($plugin) { $_this =& App::getInstance(); $pluginDir = Inflector::underscore($plugin); diff --git a/cake/libs/controller/component.php b/cake/libs/controller/component.php index f4ed6a4cb..081c81a5e 100644 --- a/cake/libs/controller/component.php +++ b/cake/libs/controller/component.php @@ -56,7 +56,7 @@ class Component extends Object { * * @var array * @access private - **/ + */ var $__settings = array(); /** diff --git a/cake/libs/controller/components/cookie.php b/cake/libs/controller/components/cookie.php index 9ddfc24ca..62331b1e2 100644 --- a/cake/libs/controller/components/cookie.php +++ b/cake/libs/controller/components/cookie.php @@ -263,7 +263,7 @@ class CookieComponent extends Object { /** * @deprecated use delete() - **/ + */ function del($key) { trigger_error('Deprecated method, use CookieComponent::delete instead', E_USER_WARNING); return $this->delete($key); diff --git a/cake/libs/inflector.php b/cake/libs/inflector.php index ba82dd919..2ae7d1393 100644 --- a/cake/libs/inflector.php +++ b/cake/libs/inflector.php @@ -37,7 +37,7 @@ class Inflector { * * @var array * @access protected - **/ + */ var $_plural = array( 'rules' => array( '/(s)tatus$/i' => '\1\2tatuses', @@ -105,7 +105,7 @@ class Inflector { * * @var array * @access protected - **/ + */ var $_singular = array( 'rules' => array( '/(s)tatuses$/i' => '\1\2tatus', @@ -155,7 +155,7 @@ class Inflector { * * @var array * @access protected - **/ + */ var $_uninflected = array( 'Amoyese', 'bison', 'Borghese', 'bream', 'breeches', 'britches', 'buffalo', 'cantus', 'carp', 'chassis', 'clippers', 'cod', 'coitus', 'Congoese', 'contretemps', 'corps', @@ -176,7 +176,7 @@ class Inflector { * * @var array * @access protected - **/ + */ var $_pluralized = array(); /** @@ -184,7 +184,7 @@ class Inflector { * * @var array * @access protected - **/ + */ var $_singularized = array(); /** diff --git a/cake/libs/log/file_log.php b/cake/libs/log/file_log.php index 76c0e50b9..e726bf231 100644 --- a/cake/libs/log/file_log.php +++ b/cake/libs/log/file_log.php @@ -31,7 +31,7 @@ class FileLog { * Path to save log files on. * * @var string - **/ + */ var $_path = null; /** @@ -43,7 +43,7 @@ class FileLog { * * @param array $options Options for the FileLog, see above. * @return void - **/ + */ function FileLog($options = array()) { $options += array('path' => LOGS); $this->_path = $options['path']; @@ -55,7 +55,7 @@ class FileLog { * @param string $type The type of log you are making. * @param string $message The message you want to log. * @return boolean success of write. - **/ + */ function write($type, $message) { $debugTypes = array('notice', 'info', 'debug'); diff --git a/cake/libs/magic_db.php b/cake/libs/magic_db.php index fd8965851..feb780b0e 100644 --- a/cake/libs/magic_db.php +++ b/cake/libs/magic_db.php @@ -36,7 +36,7 @@ class MagicDb extends Object { * Holds the parsed MagicDb for this class instance * * @var array - **/ + */ var $db = array(); /** @@ -45,7 +45,7 @@ class MagicDb extends Object { * @var $magicDb mixed Can be an array containing the db, a magic db as a string, or a filename pointing to a magic db in .db or magic.db.php format * @return boolean Returns false if reading / validation failed or true on success. * @author Felix - **/ + */ function read($magicDb = null) { if (!is_string($magicDb) && !is_array($magicDb)) { return false; diff --git a/cake/libs/model/cake_schema.php b/cake/libs/model/cake_schema.php index 28008cbd2..82b9bdafa 100644 --- a/cake/libs/model/cake_schema.php +++ b/cake/libs/model/cake_schema.php @@ -63,7 +63,7 @@ class CakeSchema extends Object { * plugin name. * * @var string - **/ + */ var $plugin = null; /** @@ -382,7 +382,7 @@ class CakeSchema extends Object { * @param string $table Table name you want returned. * @param array $fields Array of field information to generate the table with. * @return string Variable declaration for a schema class - **/ + */ function generateTable($table, $fields) { $out = "\tvar \${$table} = array(\n"; if (is_array($fields)) { @@ -573,7 +573,7 @@ class CakeSchema extends Object { * @param array $new New indexes * @param array $old Old indexes * @return mixed False on failure, or an array of parameters to add & drop. - **/ + */ function _compareTableParameters($new, $old) { if (!is_array($new) || !is_array($old)) { return false; diff --git a/cake/libs/model/datasources/datasource.php b/cake/libs/model/datasources/datasource.php index 1e0d904ec..b4742cdfa 100644 --- a/cake/libs/model/datasources/datasource.php +++ b/cake/libs/model/datasources/datasource.php @@ -404,7 +404,7 @@ class DataSource extends Object { * before establishing a connection. * * @return boolean Whether or not the Datasources conditions for use are met. - **/ + */ function enabled() { return true; } diff --git a/cake/libs/model/datasources/dbo/dbo_adodb.php b/cake/libs/model/datasources/dbo/dbo_adodb.php index ae9c20b81..ec4f2a763 100644 --- a/cake/libs/model/datasources/dbo/dbo_adodb.php +++ b/cake/libs/model/datasources/dbo/dbo_adodb.php @@ -123,7 +123,7 @@ class DboAdodb extends DboSource { * Check that AdoDB is available. * * @return boolean - **/ + */ function enabled() { return function_exists('NewADOConnection'); } diff --git a/cake/libs/model/datasources/dbo/dbo_db2.php b/cake/libs/model/datasources/dbo/dbo_db2.php index 1f44cb03a..25e4f0d0d 100644 --- a/cake/libs/model/datasources/dbo/dbo_db2.php +++ b/cake/libs/model/datasources/dbo/dbo_db2.php @@ -144,7 +144,7 @@ class DboDb2 extends DboSource { * Check that the DB2 extension is installed/loaded * * @return boolean - **/ + */ function enabled() { return extension_loaded('ibm_db2'); } diff --git a/cake/libs/model/datasources/dbo/dbo_firebird.php b/cake/libs/model/datasources/dbo/dbo_firebird.php index cfafb9f0c..d5a00c133 100644 --- a/cake/libs/model/datasources/dbo/dbo_firebird.php +++ b/cake/libs/model/datasources/dbo/dbo_firebird.php @@ -117,7 +117,7 @@ class DboFirebird extends DboSource { * Firebird Transaction commands. * * @var array - **/ + */ var $_commands = array( 'begin' => 'SET TRANSACTION', 'commit' => 'COMMIT', @@ -143,7 +143,7 @@ class DboFirebird extends DboSource { * Check that the interbase extension is loaded * * @return boolean - **/ + */ function enabled() { return extension_loaded('interbase'); } diff --git a/cake/libs/model/datasources/dbo/dbo_mssql.php b/cake/libs/model/datasources/dbo/dbo_mssql.php index b698f1c97..1424332f4 100644 --- a/cake/libs/model/datasources/dbo/dbo_mssql.php +++ b/cake/libs/model/datasources/dbo/dbo_mssql.php @@ -162,7 +162,7 @@ class DboMssql extends DboSource { * Check that MsSQL is installed/loaded * * @return boolean - **/ + */ function enabled() { return extension_loaded('mssql'); } diff --git a/cake/libs/model/datasources/dbo/dbo_mysql.php b/cake/libs/model/datasources/dbo/dbo_mysql.php index 01ca7cf4d..f4b77f0a3 100644 --- a/cake/libs/model/datasources/dbo/dbo_mysql.php +++ b/cake/libs/model/datasources/dbo/dbo_mysql.php @@ -352,7 +352,7 @@ class DboMysqlBase extends DboSource { * @param array $parameters Parameters to add & drop. * @return array Array of table property alteration statementes. * @todo Implement this method. - **/ + */ function _alterTableParameters($table, $parameters) { if (isset($parameters['change'])) { return $this->buildTableParameters($parameters['change']); @@ -530,7 +530,7 @@ class DboMysql extends DboMysqlBase { * Check whether the MySQL extension is installed/loaded * * @return boolean - **/ + */ function enabled() { return extension_loaded('mysql'); } diff --git a/cake/libs/model/datasources/dbo/dbo_mysqli.php b/cake/libs/model/datasources/dbo/dbo_mysqli.php index f1b45020b..6826024b2 100644 --- a/cake/libs/model/datasources/dbo/dbo_mysqli.php +++ b/cake/libs/model/datasources/dbo/dbo_mysqli.php @@ -87,7 +87,7 @@ class DboMysqli extends DboMysqlBase { * Check that MySQLi is installed/enabled * * @return boolean - **/ + */ function enabled() { return extension_loaded('mysqli'); } diff --git a/cake/libs/model/datasources/dbo/dbo_odbc.php b/cake/libs/model/datasources/dbo/dbo_odbc.php index 6cde21b24..a53687ad9 100644 --- a/cake/libs/model/datasources/dbo/dbo_odbc.php +++ b/cake/libs/model/datasources/dbo/dbo_odbc.php @@ -110,7 +110,7 @@ class DboOdbc extends DboSource { * Check if the ODBC extension is installed/loaded * * @return boolean - **/ + */ function enabled() { return extension_loaded('odbc'); } diff --git a/cake/libs/model/datasources/dbo/dbo_postgres.php b/cake/libs/model/datasources/dbo/dbo_postgres.php index ac2861373..33c97c815 100644 --- a/cake/libs/model/datasources/dbo/dbo_postgres.php +++ b/cake/libs/model/datasources/dbo/dbo_postgres.php @@ -127,7 +127,7 @@ class DboPostgres extends DboSource { * Check if PostgreSQL is enabled/loaded * * @return boolean - **/ + */ function enabled() { return extension_loaded('pgsql'); } diff --git a/cake/libs/model/datasources/dbo/dbo_sqlite.php b/cake/libs/model/datasources/dbo/dbo_sqlite.php index 0932303a6..f431f540c 100644 --- a/cake/libs/model/datasources/dbo/dbo_sqlite.php +++ b/cake/libs/model/datasources/dbo/dbo_sqlite.php @@ -141,7 +141,7 @@ class DboSqlite extends DboSource { * Check that SQLite is enabled/installed * * @return boolean - **/ + */ function enabled() { return extension_loaded('sqlite'); } diff --git a/cake/libs/model/datasources/dbo/dbo_sybase.php b/cake/libs/model/datasources/dbo/dbo_sybase.php index 023beb28b..0551a92b3 100644 --- a/cake/libs/model/datasources/dbo/dbo_sybase.php +++ b/cake/libs/model/datasources/dbo/dbo_sybase.php @@ -109,7 +109,7 @@ class DboSybase extends DboSource { * Check that one of the sybase extensions is installed * * @return boolean - **/ + */ function enabled() { return extension_loaded('sybase') || extension_loaded('sybase_ct'); } diff --git a/cake/libs/model/datasources/dbo_source.php b/cake/libs/model/datasources/dbo_source.php index 72bdbdc05..8fd796675 100644 --- a/cake/libs/model/datasources/dbo_source.php +++ b/cake/libs/model/datasources/dbo_source.php @@ -495,7 +495,7 @@ class DboSource extends DataSource { * * @param boolean $sorted Get the queries sorted by time taken, defaults to false. * @return array Array of queries run as an array - **/ + */ function getLog($sorted = false) { if ($sorted) { $log = sortByKey($this->_queriesLog, 'took', 'desc', SORT_NUMERIC); @@ -967,7 +967,7 @@ class DboSource extends DataSource { * @param object $model Model being merged onto * @param object $linkModel Model being merged * @return void - **/ + */ function __mergeHasMany(&$resultSet, $merge, $association, &$model, &$linkModel) { foreach ($resultSet as $i => $value) { $count = 0; @@ -2483,7 +2483,7 @@ class DboSource extends DataSource { * @param array $columnData The array of column data. * @param string $position The position type to use. 'beforeDefault' or 'afterDefault' are common * @return string a built column with the field parameters added. - **/ + */ function _buildFieldParameters($columnString, $columnData, $position) { foreach ($this->fieldParameters as $paramName => $value) { if (isset($columnData[$paramName]) && $value['position'] == $position) { diff --git a/cake/libs/router.php b/cake/libs/router.php index 3484c11d5..0b94b3907 100644 --- a/cake/libs/router.php +++ b/cake/libs/router.php @@ -161,7 +161,7 @@ class Router { * Builds __prefixes * * @return void - **/ + */ function Router() { $this->__setPrefixes(); } @@ -173,7 +173,7 @@ class Router { * @return void * @access private * @todo Remove support for Routing.admin in future versions. - **/ + */ function __setPrefixes() { $routing = Configure::read('Routing'); if (!empty($routing['admin'])) { diff --git a/cake/libs/view/helper.php b/cake/libs/view/helper.php index c1c57f58d..030b17fe1 100644 --- a/cake/libs/view/helper.php +++ b/cake/libs/view/helper.php @@ -225,7 +225,7 @@ class Helper extends Overloadable { * * @param string $path The file path to timestamp, the path must be inside WWW_ROOT * @return string Path with a timestamp added, or not. - **/ + */ function assetTimestamp($path) { $timestampEnabled = ( (Configure::read('Asset.timestamp') === true && Configure::read() > 0) || diff --git a/cake/libs/view/helpers/html.php b/cake/libs/view/helpers/html.php index c7492558b..f86c84087 100644 --- a/cake/libs/view/helpers/html.php +++ b/cake/libs/view/helpers/html.php @@ -143,14 +143,14 @@ class HtmlHelper extends AppHelper { * * @var array * @access private - **/ + */ var $__includedScripts = array(); /** * Options for the currently opened script block buffer if any. * * @var array * @access protected - **/ + */ var $_scriptBlockOptions = array(); /** * Document type definitions @@ -436,7 +436,7 @@ class HtmlHelper extends AppHelper { * @param mixed $options Array of options, and html attributes see above. If boolean sets $options['inline'] = value * @return mixed String of