public function _processRowAfterLoad(array $row, $new = false, $isPost = false, &$transformColumns = array())
    {
        if ($this->_addLoadDependency) {
            // Display of data field
            if (! (isset($row['gtf_field_type']) && $row['gtf_field_type'])) {
                $row['gtf_field_type'] = $this->getFieldType($row);
            }
            // assert: $row['gtf_field_type'] is now always filled.

            if (! isset($row[$this->_modelField])) {
                $row[$this->_modelField] = $this->getModelNameForRow($row);
            }

            // Now add the type specific dependency (if any)
            $class = $this->getTypeDependencyClass($row['gtf_field_type']);
            if ($class) {
                $dependency = $this->tracker->createTrackClass($class, $row['gtf_id_track']);
                $this->addDependency($dependency, null, null, 'row');
            }
        }

        return parent::_processRowAfterLoad($row, $new, $isPost, $transformColumns);
    }
public function _processRowAfterLoad(array $row, $new = false, $isPost = false, &$transformColumns = array())
    {
        if ($this->_addLoadDependency) {
            // Display of data field
            if (! (isset($row['gtf_field_type']) && $row['gtf_field_type'])) {
                $row['gtf_field_type'] = $this->getFieldType($row);
            }
            // assert: $row['gtf_field_type'] is now always filled.

            if (! isset($row[$this->_modelField])) {
                $row[$this->_modelField] = $this->getModelNameForRow($row);
            }

            // Now add the type specific dependency (if any)
            $class = $this->getTypeDependencyClass($row['gtf_field_type']);
            if ($class) {
                $dependency = $this->tracker->createTrackClass($class, $row['gtf_id_track']);
                $this->addDependency($dependency, null, null, 'row');
            }
        }

        return parent::_processRowAfterLoad($row, $new, $isPost, $transformColumns);
    }
public function _processRowAfterLoad ( array $ row , $ new = false , $ isPost = false , & $ transformColumns = array ( ) ) { if ( $ this -> _addLoadDependency ) { // Display of data field if ( ! ( isset ( $ row [ 'gtf_field_type' ] ) && $ row [ 'gtf_field_type' ] ) ) { $ row [ 'gtf_field_type' ] = $ this -> getFieldType ( $ row ) ; } // assert: $row['gtf_field_type'] is now always filled. if ( ! isset ( $ row [ $ this -> _modelField ] ) ) { $ row [ $ this -> _modelField ] = $ this -> getModelNameForRow ( $ row ) ; } // Now add the type specific dependency (if any) $ class = $ this -> getTypeDependencyClass ( $ row [ 'gtf_field_type' ] ) ; if ( $ class ) { $ dependency = $ this -> tracker -> createTrackClass ( $ class , $ row [ 'gtf_id_track' ] ) ; $ this -> addDependency ( $ dependency , null , null , 'row' ) ; } } return parent :: _processRowAfterLoad ( $ row , $ new , $ isPost , $ transformColumns ) ; }
Process on load functions and dependencies

@see addDependency()
@see setOnLoad()

@param array $row The row values to load
@param boolean $new True when it is a new item not saved in the model
@param boolean $isPost True when passing on post data
@param array $transformColumns
@return array The possibly adapted array of values
Process on load functions and dependencies