コード例 #1
0
ファイル: table.php プロジェクト: Simarpreet05/joomla
 /**
  * Get structure of table from db table
  */
 public function getColumns()
 {
     if (isset($this->_columns)) {
         return $this->_columns;
     }
     $tableName = $this->getTableName();
     if (XiptHelperTable::isTableExist($tableName) === FALSE) {
         return XiptError::raiseError(__CLASS__ . '.' . __LINE__, XiptText::_("Table {$this->_tbl} DOES_NOT_EXIST"));
     }
     $fields = $this->_db->getTableFields($tableName);
     $this->_columns = $fields[$tableName];
     return $this->_columns;
 }
コード例 #2
0
ファイル: aec.php プロジェクト: Simarpreet05/joomla
 public static function isAecExists()
 {
     $aecFront = JPATH_ROOT . DS . 'components' . DS . 'com_acctexp';
     $tables = array('#__acctexp_plans', '#__acctexp_microintegrations', '#__xipt_aec');
     if (!JFolder::exists($aecFront)) {
         return false;
     }
     foreach ($tables as $table) {
         if (!XiptHelperTable::isTableExist($table)) {
             return false;
         }
     }
     return true;
 }