Exemplo n.º 1
0
 /**
  * Find data from the text tables.
  *
  * @param int $elemId The text id to find and get its data
  * @param int $langId The language id
  *
  * @return array $textList
  */
 protected function _selectTexts()
 {
     $oText = new FormText();
     $oTxtType = new FormTextIndex();
     $select = $oText->select()->setIntegrityCheck(false)->from(array('FT' => $oText->getName()))->joinInner(array('FTI' => $oTxtType->info('name')), 'FTI_FormTextId = FT_ID', 'FTI_Text')->where('FT_ElementID = ?', $this->_elementId);
     if ($this->_langId != null) {
         $select->where($this->_indexLanguageId . ' = ?', $this->_langId);
     }
     $txtList = $oText->fetchRow($select)->toArray();
     return $txtList;
 }