protected function _init() { parent::_init(); if (Kwf_Config::getValue('aws.uploadsBucket')) { $this->_rowClass = 'Kwf_Util_Aws_Uploads_S3Row'; } }
protected function _init() { parent::_init(); $this->_referenceMap = array('Author' => array('refModel' => Kwf_Registry::get('userModel'), 'column' => 'author_id')); $this->_exprs['author_firstname'] = new Kwf_Model_Select_Expr_Parent('Author', 'firstname'); $this->_exprs['author_lastname'] = new Kwf_Model_Select_Expr_Parent('Author', 'lastname'); }
protected function _init() { $this->_siblingModels['vars'] = new Kwf_Model_Mail_VarsSibling(array('fieldName' => 'serialized_mail_vars')); $this->_siblingModels['essentials'] = new Kwf_Model_Field(array('fieldName' => 'serialized_mail_essentials')); $this->_dependentModels['Attachments'] = new Kwf_Model_FieldRows(array('fieldName' => 'mail_attachments')); parent::_init(); }
protected function _init() { parent::_init(); if (!count($this->_referenceMap['Item'])) { throw new Kwf_Exception("Reference 'Item' must be set in model '" . get_class($this) . "'"); } }
protected function _init() { $um = Kwf_Registry::get('userModel'); if ($um) { $userModelClass = get_class($um); $this->_referenceMap['User']['refModelClass'] = $userModelClass; } else { unset($this->_referenceMap['User']); } $this->_siblingModels = array(new Kwf_Model_Field(array('fieldName' => 'data'))); parent::_init(); }
protected function _init() { parent::_init(); $this->_siblingModels['styles'] = new Kwf_Model_Field(array('fieldName' => 'styles')); }
protected function _init() { $this->_siblingModels[] = new Kwf_Model_Field(array('fieldName' => 'data')); parent::_init(); }
protected function _init() { $userModelClass = get_class(Kwf_Registry::get('userModel')); $this->_referenceMap['InsertUser']['refModelClass'] = $userModelClass; parent::_init(); }
protected function _init() { parent::_init(); $this->_referenceMap['Parent'] = array('column' => 'parent_id', 'refModel' => $this); $this->_dependentModels['Childs'] = $this; }