Exemple #1
0
 /**
  * Load a component extension
  *
  * Override this class to load component class files which exist outside of ICE's path
  *
  * @param string $ext Name of the extension
  * @return string Name of the class which was loaded
  */
 public function load_ext($ext)
 {
     // expand extension name
     $ext_full = $this->policy()->get_handle() . '/' . $ext;
     // try to load it with extension loader
     return ICE_Ext_Loader::load_one($ext_full);
 }
Exemple #2
0
 /**
  * Load library extension(s) via static call
  *
  * @param string $ext,... An unlimited number of lib exts to load
  * @return string Name of class that was loaded
  */
 public static final function load_ext()
 {
     // handle variable number of args
     $exts = func_get_args();
     // loop through all exts
     foreach ($exts as $ext) {
         ICE_Ext_Loader::load_one($ext);
     }
 }