示例#1
0
 /**
  * Получаем информацию о полях в определённой таблице
  *
  * @param string $tableName
  * @return Zend_Db_Rowset
  */
 public function fetchAllByTableName($tableName)
 {
     $modelList = new Modules_Publications_Model_List();
     return $this->fetchAll($this->select()->setIntegrityCheck(false)->from(array('f' => $this->info('name')), '*')->join(array('r' => $modelList->info('name')), 'f.rubric_id = r.rubric_id', array())->where('r.table_name = ?', $tableName));
 }