コード例 #1
0
 /**
  * Returns the url for a specific placeholder image preset.
  * @param string $name the placeholder name.
  * @param ImagePreset $preset the preset.
  * @param boolean $absolute whether the url should be absolute (defaults to true).
  * @return string the url.
  */
 public function createHolderUrl($name, $preset, $absolute = true)
 {
     return $preset->resolveCacheUrl($absolute) . '/' . $this->holderDir . '/' . $name . '.png';
 }