Removed the deprecated propertyOrParam()

This commit is contained in:
Samuel Georges 2015-02-14 16:31:56 +11:00
parent 3be79ef6fb
commit 9927568d98
1 changed files with 0 additions and 19 deletions

View File

@ -277,23 +277,4 @@ abstract class ComponentBase extends Extendable
return $default;
}
/**
* @deprecated Returns a defined property or parameter value.
* @todo Remove this method if year >= 2015
* @see Docs: Components > External Parameters
* @param $name The property or parameter name to look for.
* @param $default A default value to return if no value is found.
* @return string
*/
public function propertyOrParam($name, $default = null)
{
$value = $this->property($name, $default);
if (substr($value, 0, 1) == ':') {
return $this->param(substr($value, 1), $default);
}
return $value;
}
}