/** * method: getComponent * * todo: write documentation */ protected function getComponent($component, $name = NULL) { if (!isset($this->prefix[$component])) { return NULL; } if (!$name) { return $this->prefix[$component]; } return Amslib_String::reduceSlashes($this->getLocation() . "/" . implode("/", $this->prefix[$component]) . "{$name}.php"); }
public static function reduceSlashes($string) { return Amslib_String::reduceSlashes($string); }