コード例 #1
0
ファイル: ModuleClass.php プロジェクト: mdouchin/jelix
 /**
  * only include a class
  * @param string $selector the jelix selector correponding to the class
  */
 public static function inc($selector)
 {
     $sel = new Selector\ClassSelector($selector);
     require_once $sel->getPath();
 }
コード例 #2
0
ファイル: ModuleClassBinding.php プロジェクト: mdouchin/jelix
 /**
  * __constructor
  * @param Selector\ClassSelector|Selector\InterfaceSelector $selector the selector of the class
  * @return void
  */
 public function __construct($selector)
 {
     require_once $selector->getPath();
     $this->fromSelector = $selector;
 }