Example #1
0
 /**
  * 	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");
 }
Example #2
0
 public static function reduceSlashes($string)
 {
     return Amslib_String::reduceSlashes($string);
 }