/** * Список таблиц текущей схемы */ public function getTables() { if (!$this->getCache()->has(self::CACHE_TABLES)) { $this->getCache()->set(self::CACHE_TABLES, $this->getObjects(' SELECT LOWER(TABLE_NAME) as TABLE_NAME, TABLE_COMMENT FROM INFORMATION_SCHEMA.TABLES WHERE table_schema=DATABASE() and TABLE_TYPE=?', 'BASE TABLE', PsTable::getClass(), 'TABLE_NAME')); } return $this->getCache()->get(self::CACHE_TABLES); }