/** * Create a new Metadata Instance */ public function __construct($settings = null, $paramsArray, $record_key) { parent::__construct($settings, $paramsArray, $record_key); // FilterModsTopic expects only one parameter. if (count($paramsArray) == 1) { $this->topLevelNodeName = $paramsArray[0]; } else { // log that the number of parameters does not meet the assumption for // for this metadatamanipulator. } }
/** * Upper-case the first character of a string. * @param string $input A string to upper case. * * @return array The modified string, or FALSE if ucfirst fails. */ public function __construct($settings = null, $input, $record_key) { parent::__construct($settings, $paramsArray, $record_key); return $this->manipulate($input); }