/** * Return the file name of a thumbnail with the specified parameters. * Use File::THUMB_FULL_NAME to always get a name like "<params>-<source>". * Otherwise, the format may be "<params>-<source>" or "<params>-thumbnail.<ext>". * * @param array $params Handler-specific parameters * @param int $flags Bitfield that supports THUMB_* constants * @return string|null */ public function thumbName($params, $flags = 0) { $name = $this->repo && !($flags & self::THUMB_FULL_NAME) ? $this->repo->nameForThumb($this->getName()) : $this->getName(); return $this->generateThumbName($name, $params); }
public function thumbName($params, $clientParams = array(), $flags = 0) { $name = $this->repo && !($flags & self::THUMB_FULL_NAME) ? $this->repo->nameForThumb($this->getName()) : $this->getName(); // ARG - pass the client params through in this function call return $this->generateThumbName($name, $params, $clientParams); }