コード例 #1
0
 /**
  * @internal
  */
 protected function _freeMemory()
 {
     if (isset($this->parent) && $this->parent) {
         $this->_lazyParent = $this->parent->componentId;
         unset($this->parent);
     }
     if (isset($this->chained)) {
         $this->_lazyChained = $this->chained->componentId;
         unset($this->chained);
     }
     if (isset($this->_component)) {
         $this->_component->freeMemory();
         unset($this->_component);
     }
     //unset($this->generator);
     if (isset($this->row)) {
         $this->_lazyRow = $this->generator->getLazyRowByRow($this->row, $this);
         unset($this->row);
     }
     if (isset($this->_uniqueParentDatas)) {
         unset($this->_uniqueParentDatas);
     }
     if (isset($this->_inheritClasses)) {
         unset($this->_inheritClasses);
     }
     $this->_childComponentsCache = array();
     $this->_recursiveGeneratorsCache = array();
     if (isset($this->_languageCache)) {
         unset($this->_languageCache);
     }
 }