mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Fix PHPDoc @return by replacing $this to self
This commit is contained in:
parent
a890d76990
commit
fde1d08b43
10 changed files with 52 additions and 52 deletions
|
@ -218,7 +218,7 @@ class ConsoleOptionParser {
|
||||||
* Get or set the command name for shell/task.
|
* Get or set the command name for shell/task.
|
||||||
*
|
*
|
||||||
* @param string $text The text to set, or null if you want to read
|
* @param string $text The text to set, or null if you want to read
|
||||||
* @return string|$this If reading, the value of the command. If setting $this will be returned.
|
* @return string|self If reading, the value of the command. If setting $this will be returned.
|
||||||
*/
|
*/
|
||||||
public function command($text = null) {
|
public function command($text = null) {
|
||||||
if ($text !== null) {
|
if ($text !== null) {
|
||||||
|
@ -233,7 +233,7 @@ class ConsoleOptionParser {
|
||||||
*
|
*
|
||||||
* @param string|array $text The text to set, or null if you want to read. If an array the
|
* @param string|array $text The text to set, or null if you want to read. If an array the
|
||||||
* text will be imploded with "\n"
|
* text will be imploded with "\n"
|
||||||
* @return string|$this If reading, the value of the description. If setting $this will be returned.
|
* @return string|self If reading, the value of the description. If setting $this will be returned.
|
||||||
*/
|
*/
|
||||||
public function description($text = null) {
|
public function description($text = null) {
|
||||||
if ($text !== null) {
|
if ($text !== null) {
|
||||||
|
@ -251,7 +251,7 @@ class ConsoleOptionParser {
|
||||||
* the options and arguments listing when help is generated.
|
* the options and arguments listing when help is generated.
|
||||||
*
|
*
|
||||||
* @param string|array $text Text when setting or null when reading. If an array the text will be imploded with "\n"
|
* @param string|array $text Text when setting or null when reading. If an array the text will be imploded with "\n"
|
||||||
* @return string|$this If reading, the value of the epilog. If setting $this will be returned.
|
* @return string|self If reading, the value of the epilog. If setting $this will be returned.
|
||||||
*/
|
*/
|
||||||
public function epilog($text = null) {
|
public function epilog($text = null) {
|
||||||
if ($text !== null) {
|
if ($text !== null) {
|
||||||
|
@ -284,7 +284,7 @@ class ConsoleOptionParser {
|
||||||
* @param ConsoleInputOption|string $name The long name you want to the value to be parsed out as when options are parsed.
|
* @param ConsoleInputOption|string $name The long name you want to the value to be parsed out as when options are parsed.
|
||||||
* Will also accept an instance of ConsoleInputOption
|
* Will also accept an instance of ConsoleInputOption
|
||||||
* @param array $options An array of parameters that define the behavior of the option
|
* @param array $options An array of parameters that define the behavior of the option
|
||||||
* @return $this
|
* @return self
|
||||||
*/
|
*/
|
||||||
public function addOption($name, $options = array()) {
|
public function addOption($name, $options = array()) {
|
||||||
if (is_object($name) && $name instanceof ConsoleInputOption) {
|
if (is_object($name) && $name instanceof ConsoleInputOption) {
|
||||||
|
@ -324,7 +324,7 @@ class ConsoleOptionParser {
|
||||||
*
|
*
|
||||||
* @param ConsoleInputArgument|string $name The name of the argument. Will also accept an instance of ConsoleInputArgument
|
* @param ConsoleInputArgument|string $name The name of the argument. Will also accept an instance of ConsoleInputArgument
|
||||||
* @param array $params Parameters for the argument, see above.
|
* @param array $params Parameters for the argument, see above.
|
||||||
* @return $this
|
* @return self
|
||||||
*/
|
*/
|
||||||
public function addArgument($name, $params = array()) {
|
public function addArgument($name, $params = array()) {
|
||||||
if (is_object($name) && $name instanceof ConsoleInputArgument) {
|
if (is_object($name) && $name instanceof ConsoleInputArgument) {
|
||||||
|
@ -354,7 +354,7 @@ class ConsoleOptionParser {
|
||||||
*
|
*
|
||||||
* @param array $args Array of arguments to add.
|
* @param array $args Array of arguments to add.
|
||||||
* @see ConsoleOptionParser::addArgument()
|
* @see ConsoleOptionParser::addArgument()
|
||||||
* @return $this
|
* @return self
|
||||||
*/
|
*/
|
||||||
public function addArguments(array $args) {
|
public function addArguments(array $args) {
|
||||||
foreach ($args as $name => $params) {
|
foreach ($args as $name => $params) {
|
||||||
|
@ -369,7 +369,7 @@ class ConsoleOptionParser {
|
||||||
*
|
*
|
||||||
* @param array $options Array of options to add.
|
* @param array $options Array of options to add.
|
||||||
* @see ConsoleOptionParser::addOption()
|
* @see ConsoleOptionParser::addOption()
|
||||||
* @return $this
|
* @return self
|
||||||
*/
|
*/
|
||||||
public function addOptions(array $options) {
|
public function addOptions(array $options) {
|
||||||
foreach ($options as $name => $params) {
|
foreach ($options as $name => $params) {
|
||||||
|
@ -391,7 +391,7 @@ class ConsoleOptionParser {
|
||||||
*
|
*
|
||||||
* @param ConsoleInputSubcommand|string $name Name of the subcommand. Will also accept an instance of ConsoleInputSubcommand
|
* @param ConsoleInputSubcommand|string $name Name of the subcommand. Will also accept an instance of ConsoleInputSubcommand
|
||||||
* @param array $options Array of params, see above.
|
* @param array $options Array of params, see above.
|
||||||
* @return $this
|
* @return self
|
||||||
*/
|
*/
|
||||||
public function addSubcommand($name, $options = array()) {
|
public function addSubcommand($name, $options = array()) {
|
||||||
if (is_object($name) && $name instanceof ConsoleInputSubcommand) {
|
if (is_object($name) && $name instanceof ConsoleInputSubcommand) {
|
||||||
|
@ -414,7 +414,7 @@ class ConsoleOptionParser {
|
||||||
* Remove a subcommand from the option parser.
|
* Remove a subcommand from the option parser.
|
||||||
*
|
*
|
||||||
* @param string $name The subcommand name to remove.
|
* @param string $name The subcommand name to remove.
|
||||||
* @return $this
|
* @return self
|
||||||
*/
|
*/
|
||||||
public function removeSubcommand($name) {
|
public function removeSubcommand($name) {
|
||||||
unset($this->_subcommands[$name]);
|
unset($this->_subcommands[$name]);
|
||||||
|
@ -425,7 +425,7 @@ class ConsoleOptionParser {
|
||||||
* Add multiple subcommands at once.
|
* Add multiple subcommands at once.
|
||||||
*
|
*
|
||||||
* @param array $commands Array of subcommands.
|
* @param array $commands Array of subcommands.
|
||||||
* @return $this
|
* @return self
|
||||||
*/
|
*/
|
||||||
public function addSubcommands(array $commands) {
|
public function addSubcommands(array $commands) {
|
||||||
foreach ($commands as $name => $params) {
|
foreach ($commands as $name => $params) {
|
||||||
|
@ -469,7 +469,7 @@ class ConsoleOptionParser {
|
||||||
* @param array $argv Array of args (argv) to parse.
|
* @param array $argv Array of args (argv) to parse.
|
||||||
* @param string $command The subcommand to use. If this parameter is a subcommand, that has a parser,
|
* @param string $command The subcommand to use. If this parameter is a subcommand, that has a parser,
|
||||||
* That parser will be used to parse $argv instead.
|
* That parser will be used to parse $argv instead.
|
||||||
* @return Array array($params, $args)
|
* @return array array($params, $args)
|
||||||
* @throws ConsoleException When an invalid parameter is encountered.
|
* @throws ConsoleException When an invalid parameter is encountered.
|
||||||
*/
|
*/
|
||||||
public function parse($argv, $command = null) {
|
public function parse($argv, $command = null) {
|
||||||
|
|
|
@ -363,7 +363,7 @@ class ModelValidator implements ArrayAccess, IteratorAggregate, Countable {
|
||||||
* Sets the I18n domain for validation messages. This method is chainable.
|
* Sets the I18n domain for validation messages. This method is chainable.
|
||||||
*
|
*
|
||||||
* @param string $validationDomain [optional] The validation domain to be used.
|
* @param string $validationDomain [optional] The validation domain to be used.
|
||||||
* @return $this
|
* @return self
|
||||||
*/
|
*/
|
||||||
public function setValidationDomain($validationDomain = null) {
|
public function setValidationDomain($validationDomain = null) {
|
||||||
if (empty($validationDomain)) {
|
if (empty($validationDomain)) {
|
||||||
|
@ -549,7 +549,7 @@ class ModelValidator implements ArrayAccess, IteratorAggregate, Countable {
|
||||||
* @param string $field The name of the field where the rule is to be added
|
* @param string $field The name of the field where the rule is to be added
|
||||||
* @param string|array|CakeValidationSet $name name of the rule to be added or list of rules for the field
|
* @param string|array|CakeValidationSet $name name of the rule to be added or list of rules for the field
|
||||||
* @param array|CakeValidationRule $rule or list of rules to be added to the field's rule set
|
* @param array|CakeValidationRule $rule or list of rules to be added to the field's rule set
|
||||||
* @return $this
|
* @return self
|
||||||
*/
|
*/
|
||||||
public function add($field, $name, $rule = null) {
|
public function add($field, $name, $rule = null) {
|
||||||
$this->_parseRules();
|
$this->_parseRules();
|
||||||
|
@ -588,7 +588,7 @@ class ModelValidator implements ArrayAccess, IteratorAggregate, Countable {
|
||||||
*
|
*
|
||||||
* @param string $field The name of the field from which the rule will be removed
|
* @param string $field The name of the field from which the rule will be removed
|
||||||
* @param string $rule the name of the rule to be removed
|
* @param string $rule the name of the rule to be removed
|
||||||
* @return $this
|
* @return self
|
||||||
*/
|
*/
|
||||||
public function remove($field, $rule = null) {
|
public function remove($field, $rule = null) {
|
||||||
$this->_parseRules();
|
$this->_parseRules();
|
||||||
|
|
|
@ -191,7 +191,7 @@ class CakeValidationSet implements ArrayAccess, IteratorAggregate, Countable {
|
||||||
*
|
*
|
||||||
* @param string $name The name under which the rule should be set
|
* @param string $name The name under which the rule should be set
|
||||||
* @param CakeValidationRule|array $rule The validation rule to be set
|
* @param CakeValidationRule|array $rule The validation rule to be set
|
||||||
* @return $this
|
* @return self
|
||||||
*/
|
*/
|
||||||
public function setRule($name, $rule) {
|
public function setRule($name, $rule) {
|
||||||
if (!($rule instanceof CakeValidationRule)) {
|
if (!($rule instanceof CakeValidationRule)) {
|
||||||
|
@ -213,7 +213,7 @@ class CakeValidationSet implements ArrayAccess, IteratorAggregate, Countable {
|
||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
* @param string $name The name under which the rule should be unset
|
* @param string $name The name under which the rule should be unset
|
||||||
* @return $this
|
* @return self
|
||||||
*/
|
*/
|
||||||
public function removeRule($name) {
|
public function removeRule($name) {
|
||||||
unset($this->_rules[$name]);
|
unset($this->_rules[$name]);
|
||||||
|
@ -234,7 +234,7 @@ class CakeValidationSet implements ArrayAccess, IteratorAggregate, Countable {
|
||||||
*
|
*
|
||||||
* @param array $rules The rules to be set
|
* @param array $rules The rules to be set
|
||||||
* @param bool $mergeVars [optional] If true, merges vars instead of replace. Defaults to true.
|
* @param bool $mergeVars [optional] If true, merges vars instead of replace. Defaults to true.
|
||||||
* @return $this
|
* @return self
|
||||||
*/
|
*/
|
||||||
public function setRules($rules = array(), $mergeVars = true) {
|
public function setRules($rules = array(), $mergeVars = true) {
|
||||||
if ($mergeVars === false) {
|
if ($mergeVars === false) {
|
||||||
|
|
|
@ -695,7 +695,7 @@ class CakeRequest implements ArrayAccess {
|
||||||
* This modifies the parameters available through `$request->params`.
|
* This modifies the parameters available through `$request->params`.
|
||||||
*
|
*
|
||||||
* @param array $params Array of parameters to merge in
|
* @param array $params Array of parameters to merge in
|
||||||
* @return $this
|
* @return self
|
||||||
*/
|
*/
|
||||||
public function addParams($params) {
|
public function addParams($params) {
|
||||||
$this->params = array_merge($this->params, (array)$params);
|
$this->params = array_merge($this->params, (array)$params);
|
||||||
|
@ -707,7 +707,7 @@ class CakeRequest implements ArrayAccess {
|
||||||
* Provides an easy way to modify, here, webroot and base.
|
* Provides an easy way to modify, here, webroot and base.
|
||||||
*
|
*
|
||||||
* @param array $paths Array of paths to merge in
|
* @param array $paths Array of paths to merge in
|
||||||
* @return $this
|
* @return self
|
||||||
*/
|
*/
|
||||||
public function addPaths($paths) {
|
public function addPaths($paths) {
|
||||||
foreach (array('webroot', 'here', 'base') as $element) {
|
foreach (array('webroot', 'here', 'base') as $element) {
|
||||||
|
@ -948,7 +948,7 @@ class CakeRequest implements ArrayAccess {
|
||||||
* will be created for you.
|
* will be created for you.
|
||||||
*
|
*
|
||||||
* @param string $name Dot separated name of the value to read/write, one or more args.
|
* @param string $name Dot separated name of the value to read/write, one or more args.
|
||||||
* @return mixed|$this Either the value being read, or $this so you can chain consecutive writes.
|
* @return mixed|self Either the value being read, or $this so you can chain consecutive writes.
|
||||||
*/
|
*/
|
||||||
public function data($name) {
|
public function data($name) {
|
||||||
$args = func_get_args();
|
$args = func_get_args();
|
||||||
|
|
|
@ -457,7 +457,7 @@ class CakeEmail {
|
||||||
* @param string|array $email Null to get, String with email,
|
* @param string|array $email Null to get, String with email,
|
||||||
* Array with email as key, name as value or email as value (without name)
|
* Array with email as key, name as value or email as value (without name)
|
||||||
* @param string $name Name
|
* @param string $name Name
|
||||||
* @return array|CakeEmail
|
* @return array|self
|
||||||
*/
|
*/
|
||||||
public function to($email = null, $name = null) {
|
public function to($email = null, $name = null) {
|
||||||
if ($email === null) {
|
if ($email === null) {
|
||||||
|
@ -472,7 +472,7 @@ class CakeEmail {
|
||||||
* @param string|array $email Null to get, String with email,
|
* @param string|array $email Null to get, String with email,
|
||||||
* Array with email as key, name as value or email as value (without name)
|
* Array with email as key, name as value or email as value (without name)
|
||||||
* @param string $name Name
|
* @param string $name Name
|
||||||
* @return $this
|
* @return self
|
||||||
*/
|
*/
|
||||||
public function addTo($email, $name = null) {
|
public function addTo($email, $name = null) {
|
||||||
return $this->_addEmail('_to', $email, $name);
|
return $this->_addEmail('_to', $email, $name);
|
||||||
|
@ -484,7 +484,7 @@ class CakeEmail {
|
||||||
* @param string|array $email Null to get, String with email,
|
* @param string|array $email Null to get, String with email,
|
||||||
* Array with email as key, name as value or email as value (without name)
|
* Array with email as key, name as value or email as value (without name)
|
||||||
* @param string $name Name
|
* @param string $name Name
|
||||||
* @return array|CakeEmail
|
* @return array|self
|
||||||
*/
|
*/
|
||||||
public function cc($email = null, $name = null) {
|
public function cc($email = null, $name = null) {
|
||||||
if ($email === null) {
|
if ($email === null) {
|
||||||
|
@ -499,7 +499,7 @@ class CakeEmail {
|
||||||
* @param string|array $email Null to get, String with email,
|
* @param string|array $email Null to get, String with email,
|
||||||
* Array with email as key, name as value or email as value (without name)
|
* Array with email as key, name as value or email as value (without name)
|
||||||
* @param string $name Name
|
* @param string $name Name
|
||||||
* @return $this
|
* @return self
|
||||||
*/
|
*/
|
||||||
public function addCc($email, $name = null) {
|
public function addCc($email, $name = null) {
|
||||||
return $this->_addEmail('_cc', $email, $name);
|
return $this->_addEmail('_cc', $email, $name);
|
||||||
|
@ -511,7 +511,7 @@ class CakeEmail {
|
||||||
* @param string|array $email Null to get, String with email,
|
* @param string|array $email Null to get, String with email,
|
||||||
* Array with email as key, name as value or email as value (without name)
|
* Array with email as key, name as value or email as value (without name)
|
||||||
* @param string $name Name
|
* @param string $name Name
|
||||||
* @return array|CakeEmail
|
* @return array|self
|
||||||
*/
|
*/
|
||||||
public function bcc($email = null, $name = null) {
|
public function bcc($email = null, $name = null) {
|
||||||
if ($email === null) {
|
if ($email === null) {
|
||||||
|
@ -526,7 +526,7 @@ class CakeEmail {
|
||||||
* @param string|array $email Null to get, String with email,
|
* @param string|array $email Null to get, String with email,
|
||||||
* Array with email as key, name as value or email as value (without name)
|
* Array with email as key, name as value or email as value (without name)
|
||||||
* @param string $name Name
|
* @param string $name Name
|
||||||
* @return $this
|
* @return self
|
||||||
*/
|
*/
|
||||||
public function addBcc($email, $name = null) {
|
public function addBcc($email, $name = null) {
|
||||||
return $this->_addEmail('_bcc', $email, $name);
|
return $this->_addEmail('_bcc', $email, $name);
|
||||||
|
@ -568,7 +568,7 @@ class CakeEmail {
|
||||||
* @param string|bool|null $regex The pattern to use for email address validation,
|
* @param string|bool|null $regex The pattern to use for email address validation,
|
||||||
* null to unset the pattern and make use of filter_var() instead, false or
|
* null to unset the pattern and make use of filter_var() instead, false or
|
||||||
* nothing to return the current value
|
* nothing to return the current value
|
||||||
* @return string|$this
|
* @return string|self
|
||||||
*/
|
*/
|
||||||
public function emailPattern($regex = false) {
|
public function emailPattern($regex = false) {
|
||||||
if ($regex === false) {
|
if ($regex === false) {
|
||||||
|
@ -585,7 +585,7 @@ class CakeEmail {
|
||||||
* @param string|array $email String with email,
|
* @param string|array $email String with email,
|
||||||
* Array with email as key, name as value or email as value (without name)
|
* Array with email as key, name as value or email as value (without name)
|
||||||
* @param string $name Name
|
* @param string $name Name
|
||||||
* @return $this
|
* @return self
|
||||||
*/
|
*/
|
||||||
protected function _setEmail($varName, $email, $name) {
|
protected function _setEmail($varName, $email, $name) {
|
||||||
if (!is_array($email)) {
|
if (!is_array($email)) {
|
||||||
|
@ -634,7 +634,7 @@ class CakeEmail {
|
||||||
* Array with email as key, name as value or email as value (without name)
|
* Array with email as key, name as value or email as value (without name)
|
||||||
* @param string $name Name
|
* @param string $name Name
|
||||||
* @param string $throwMessage Exception message
|
* @param string $throwMessage Exception message
|
||||||
* @return $this
|
* @return self
|
||||||
* @throws SocketException
|
* @throws SocketException
|
||||||
*/
|
*/
|
||||||
protected function _setEmailSingle($varName, $email, $name, $throwMessage) {
|
protected function _setEmailSingle($varName, $email, $name, $throwMessage) {
|
||||||
|
@ -654,7 +654,7 @@ class CakeEmail {
|
||||||
* @param string|array $email String with email,
|
* @param string|array $email String with email,
|
||||||
* Array with email as key, name as value or email as value (without name)
|
* Array with email as key, name as value or email as value (without name)
|
||||||
* @param string $name Name
|
* @param string $name Name
|
||||||
* @return $this
|
* @return self
|
||||||
* @throws SocketException
|
* @throws SocketException
|
||||||
*/
|
*/
|
||||||
protected function _addEmail($varName, $email, $name) {
|
protected function _addEmail($varName, $email, $name) {
|
||||||
|
@ -682,7 +682,7 @@ class CakeEmail {
|
||||||
* Get/Set Subject.
|
* Get/Set Subject.
|
||||||
*
|
*
|
||||||
* @param string $subject Subject string.
|
* @param string $subject Subject string.
|
||||||
* @return string|$this
|
* @return string|self
|
||||||
*/
|
*/
|
||||||
public function subject($subject = null) {
|
public function subject($subject = null) {
|
||||||
if ($subject === null) {
|
if ($subject === null) {
|
||||||
|
@ -696,7 +696,7 @@ class CakeEmail {
|
||||||
* Sets headers for the message
|
* Sets headers for the message
|
||||||
*
|
*
|
||||||
* @param array $headers Associative array containing headers to be set.
|
* @param array $headers Associative array containing headers to be set.
|
||||||
* @return $this
|
* @return self
|
||||||
* @throws SocketException
|
* @throws SocketException
|
||||||
*/
|
*/
|
||||||
public function setHeaders($headers) {
|
public function setHeaders($headers) {
|
||||||
|
@ -711,7 +711,7 @@ class CakeEmail {
|
||||||
* Add header for the message
|
* Add header for the message
|
||||||
*
|
*
|
||||||
* @param array $headers Headers to set.
|
* @param array $headers Headers to set.
|
||||||
* @return $this
|
* @return self
|
||||||
* @throws SocketException
|
* @throws SocketException
|
||||||
*/
|
*/
|
||||||
public function addHeaders($headers) {
|
public function addHeaders($headers) {
|
||||||
|
@ -844,7 +844,7 @@ class CakeEmail {
|
||||||
*
|
*
|
||||||
* @param bool|string $template Template name or null to not use
|
* @param bool|string $template Template name or null to not use
|
||||||
* @param bool|string $layout Layout name or null to not use
|
* @param bool|string $layout Layout name or null to not use
|
||||||
* @return array|$this
|
* @return array|self
|
||||||
*/
|
*/
|
||||||
public function template($template = false, $layout = false) {
|
public function template($template = false, $layout = false) {
|
||||||
if ($template === false) {
|
if ($template === false) {
|
||||||
|
@ -864,7 +864,7 @@ class CakeEmail {
|
||||||
* View class for render
|
* View class for render
|
||||||
*
|
*
|
||||||
* @param string $viewClass View class name.
|
* @param string $viewClass View class name.
|
||||||
* @return string|$this
|
* @return string|self
|
||||||
*/
|
*/
|
||||||
public function viewRender($viewClass = null) {
|
public function viewRender($viewClass = null) {
|
||||||
if ($viewClass === null) {
|
if ($viewClass === null) {
|
||||||
|
@ -878,7 +878,7 @@ class CakeEmail {
|
||||||
* Variables to be set on render
|
* Variables to be set on render
|
||||||
*
|
*
|
||||||
* @param array $viewVars Variables to set for view.
|
* @param array $viewVars Variables to set for view.
|
||||||
* @return array|$this
|
* @return array|self
|
||||||
*/
|
*/
|
||||||
public function viewVars($viewVars = null) {
|
public function viewVars($viewVars = null) {
|
||||||
if ($viewVars === null) {
|
if ($viewVars === null) {
|
||||||
|
@ -892,7 +892,7 @@ class CakeEmail {
|
||||||
* Theme to use when rendering
|
* Theme to use when rendering
|
||||||
*
|
*
|
||||||
* @param string $theme Theme name.
|
* @param string $theme Theme name.
|
||||||
* @return string|$this
|
* @return string|self
|
||||||
*/
|
*/
|
||||||
public function theme($theme = null) {
|
public function theme($theme = null) {
|
||||||
if ($theme === null) {
|
if ($theme === null) {
|
||||||
|
@ -906,7 +906,7 @@ class CakeEmail {
|
||||||
* Helpers to be used in render
|
* Helpers to be used in render
|
||||||
*
|
*
|
||||||
* @param array $helpers Helpers list.
|
* @param array $helpers Helpers list.
|
||||||
* @return array|$this
|
* @return array|self
|
||||||
*/
|
*/
|
||||||
public function helpers($helpers = null) {
|
public function helpers($helpers = null) {
|
||||||
if ($helpers === null) {
|
if ($helpers === null) {
|
||||||
|
@ -920,7 +920,7 @@ class CakeEmail {
|
||||||
* Email format
|
* Email format
|
||||||
*
|
*
|
||||||
* @param string $format Formatting string.
|
* @param string $format Formatting string.
|
||||||
* @return string|$this
|
* @return string|self
|
||||||
* @throws SocketException
|
* @throws SocketException
|
||||||
*/
|
*/
|
||||||
public function emailFormat($format = null) {
|
public function emailFormat($format = null) {
|
||||||
|
@ -938,7 +938,7 @@ class CakeEmail {
|
||||||
* Transport name
|
* Transport name
|
||||||
*
|
*
|
||||||
* @param string $name Transport name.
|
* @param string $name Transport name.
|
||||||
* @return string|$this
|
* @return string|self
|
||||||
*/
|
*/
|
||||||
public function transport($name = null) {
|
public function transport($name = null) {
|
||||||
if ($name === null) {
|
if ($name === null) {
|
||||||
|
@ -975,7 +975,7 @@ class CakeEmail {
|
||||||
* Message-ID
|
* Message-ID
|
||||||
*
|
*
|
||||||
* @param bool|string $message True to generate a new Message-ID, False to ignore (not send in email), String to set as Message-ID
|
* @param bool|string $message True to generate a new Message-ID, False to ignore (not send in email), String to set as Message-ID
|
||||||
* @return bool|string|$this
|
* @return bool|string|self
|
||||||
* @throws SocketException
|
* @throws SocketException
|
||||||
*/
|
*/
|
||||||
public function messageId($message = null) {
|
public function messageId($message = null) {
|
||||||
|
@ -997,7 +997,7 @@ class CakeEmail {
|
||||||
* Domain as top level (the part after @)
|
* Domain as top level (the part after @)
|
||||||
*
|
*
|
||||||
* @param string $domain Manually set the domain for CLI mailing
|
* @param string $domain Manually set the domain for CLI mailing
|
||||||
* @return string|$this
|
* @return string|self
|
||||||
*/
|
*/
|
||||||
public function domain($domain = null) {
|
public function domain($domain = null) {
|
||||||
if ($domain === null) {
|
if ($domain === null) {
|
||||||
|
@ -1051,7 +1051,7 @@ class CakeEmail {
|
||||||
* attachment compatibility with outlook email clients.
|
* attachment compatibility with outlook email clients.
|
||||||
*
|
*
|
||||||
* @param string|array $attachments String with the filename or array with filenames
|
* @param string|array $attachments String with the filename or array with filenames
|
||||||
* @return array|$this Either the array of attachments when getting or $this when setting.
|
* @return array|self Either the array of attachments when getting or $this when setting.
|
||||||
* @throws SocketException
|
* @throws SocketException
|
||||||
*/
|
*/
|
||||||
public function attachments($attachments = null) {
|
public function attachments($attachments = null) {
|
||||||
|
@ -1094,7 +1094,7 @@ class CakeEmail {
|
||||||
* Add attachments
|
* Add attachments
|
||||||
*
|
*
|
||||||
* @param string|array $attachments String with the filename or array with filenames
|
* @param string|array $attachments String with the filename or array with filenames
|
||||||
* @return $this
|
* @return self
|
||||||
* @throws SocketException
|
* @throws SocketException
|
||||||
* @see CakeEmail::attachments()
|
* @see CakeEmail::attachments()
|
||||||
*/
|
*/
|
||||||
|
@ -1135,7 +1135,7 @@ class CakeEmail {
|
||||||
* `$email->config(array('to' => 'bill@example.com'));`
|
* `$email->config(array('to' => 'bill@example.com'));`
|
||||||
*
|
*
|
||||||
* @param string|array $config String with configuration name (from email.php), array with config or null to return current config
|
* @param string|array $config String with configuration name (from email.php), array with config or null to return current config
|
||||||
* @return string|array|$this
|
* @return string|array|self
|
||||||
*/
|
*/
|
||||||
public function config($config = null) {
|
public function config($config = null) {
|
||||||
if ($config === null) {
|
if ($config === null) {
|
||||||
|
@ -1199,7 +1199,7 @@ class CakeEmail {
|
||||||
* @param string|array $message String with message or array with variables to be used in render
|
* @param string|array $message String with message or array with variables to be used in render
|
||||||
* @param string|array $transportConfig String to use config from EmailConfig or array with configs
|
* @param string|array $transportConfig String to use config from EmailConfig or array with configs
|
||||||
* @param bool $send Send the email or just return the instance pre-configured
|
* @param bool $send Send the email or just return the instance pre-configured
|
||||||
* @return CakeEmail Instance of CakeEmail
|
* @return self Instance of CakeEmail
|
||||||
* @throws SocketException
|
* @throws SocketException
|
||||||
*/
|
*/
|
||||||
public static function deliver($to = null, $subject = null, $message = null, $transportConfig = 'fast', $send = true) {
|
public static function deliver($to = null, $subject = null, $message = null, $transportConfig = 'fast', $send = true) {
|
||||||
|
@ -1285,7 +1285,7 @@ class CakeEmail {
|
||||||
/**
|
/**
|
||||||
* Reset all CakeEmail internal variables to be able to send out a new email.
|
* Reset all CakeEmail internal variables to be able to send out a new email.
|
||||||
*
|
*
|
||||||
* @return $this
|
* @return self
|
||||||
*/
|
*/
|
||||||
public function reset() {
|
public function reset() {
|
||||||
$this->_to = array();
|
$this->_to = array();
|
||||||
|
|
|
@ -174,7 +174,7 @@ class HtmlHelper extends AppHelper {
|
||||||
* @param string $name Text for link
|
* @param string $name Text for link
|
||||||
* @param string $link URL for link (if empty it won't be a link)
|
* @param string $link URL for link (if empty it won't be a link)
|
||||||
* @param string|array $options Link attributes e.g. array('id' => 'selected')
|
* @param string|array $options Link attributes e.g. array('id' => 'selected')
|
||||||
* @return $this
|
* @return self
|
||||||
* @see HtmlHelper::link() for details on $options that can be used.
|
* @see HtmlHelper::link() for details on $options that can be used.
|
||||||
* @link http://book.cakephp.org/2.0/en/core-libraries/helpers/html.html#creating-breadcrumb-trails-with-htmlhelper
|
* @link http://book.cakephp.org/2.0/en/core-libraries/helpers/html.html#creating-breadcrumb-trails-with-htmlhelper
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -145,7 +145,7 @@ class JqueryEngineHelper extends JsBaseEngineHelper {
|
||||||
* Create javascript selector for a CSS rule
|
* Create javascript selector for a CSS rule
|
||||||
*
|
*
|
||||||
* @param string $selector The selector that is targeted
|
* @param string $selector The selector that is targeted
|
||||||
* @return $this
|
* @return self
|
||||||
*/
|
*/
|
||||||
public function get($selector) {
|
public function get($selector) {
|
||||||
if ($selector === 'window' || $selector === 'document') {
|
if ($selector === 'window' || $selector === 'document') {
|
||||||
|
|
|
@ -285,7 +285,7 @@ abstract class JsBaseEngineHelper extends AppHelper {
|
||||||
* Create javascript selector for a CSS rule
|
* Create javascript selector for a CSS rule
|
||||||
*
|
*
|
||||||
* @param string $selector The selector that is targeted
|
* @param string $selector The selector that is targeted
|
||||||
* @return JsBaseEngineHelper instance of $this. Allows chained methods.
|
* @return self instance of $this. Allows chained methods.
|
||||||
*/
|
*/
|
||||||
abstract public function get($selector);
|
abstract public function get($selector);
|
||||||
|
|
||||||
|
|
|
@ -118,7 +118,7 @@ class MootoolsEngineHelper extends JsBaseEngineHelper {
|
||||||
* Create javascript selector for a CSS rule
|
* Create javascript selector for a CSS rule
|
||||||
*
|
*
|
||||||
* @param string $selector The selector that is targeted
|
* @param string $selector The selector that is targeted
|
||||||
* @return $this
|
* @return self
|
||||||
*/
|
*/
|
||||||
public function get($selector) {
|
public function get($selector) {
|
||||||
$this->_multipleSelection = false;
|
$this->_multipleSelection = false;
|
||||||
|
|
|
@ -114,7 +114,7 @@ class PrototypeEngineHelper extends JsBaseEngineHelper {
|
||||||
* Create javascript selector for a CSS rule
|
* Create javascript selector for a CSS rule
|
||||||
*
|
*
|
||||||
* @param string $selector The selector that is targeted
|
* @param string $selector The selector that is targeted
|
||||||
* @return $this
|
* @return self
|
||||||
*/
|
*/
|
||||||
public function get($selector) {
|
public function get($selector) {
|
||||||
$this->_multiple = false;
|
$this->_multiple = false;
|
||||||
|
|
Loading…
Reference in a new issue