コード例 #1
0
 public function __set($name, $value)
 {
     switch ($name) {
         case 'import':
             $this->imports[] = $value;
             require_once $value;
             break;
         case 'imports':
             foreach ($value as $import) {
                 if (is_null($import)) {
                     continue;
                 }
                 $this->imports[] = $import;
                 require_once $import;
             }
             break;
         case 'sequence':
             $this->steps[] = $value;
             break;
         default:
             parent::__set($name, $value);
             break;
     }
 }
コード例 #2
0
 /**
  * @return Ezer_ScopeInstance
  */
 public function &spawn()
 {
     $scope_instance = $this->scope->spawn($this);
     return $scope_instance;
 }