_primaryKey)) { $this->_dataObj->setPrimaryKey($this->_primaryKey); $this->_dataObj->initDraftData(); } return $this; } protected function _initElements() { parent::_initElements(); $this->addElement('hidden', 'action', array('value' => 'publish')); return $this; } public function initRender() { if (!$this->getInitializedRender()) { $this->_initContentsLangDirection(); } return parent::initRender(); } protected function _initContentsLangDirection() { if (($lang = $this->_dataObj->getLanguage()) && ($dir = Qs_Db_Language::getLang($lang, 'dir'))) { $this->setAttrib('data-dir', $dir); } } }