コード例 #1
0
ファイル: Container.php プロジェクト: phpcrystal/phpcrystal
 /**
  * {@inherited}
  */
 public function set($keySegment, $value)
 {
     $itemKey = $this->getItemKey($keySegment);
     // if value to set is an subcontractor instance we have to let it 'know' that
     // it's needed by a specified contractor so it would do a proper initialization
     if ($value instanceof AbstractSubcontractor && ($this->currentSectionType = SECTION_TYPE_SERVICE)) {
         $value->setContractorName($this->getCurrentSectionName());
     }
     return parent::set($itemKey, $value);
 }
コード例 #2
0
ファイル: Input.php プロジェクト: phpcrystal/phpcrystal
 public function __construct(array $items = array())
 {
     parent::__construct($items);
 }