* @copyright 2007-2011 PrestaShop SA * @version Release: $Revision: 1.4 $ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA */ class ThemeCore extends ObjectModel { public $name; /** * @see ObjectModel::$definition */ public static $definition = array( 'table' => 'theme', 'primary' => 'id_theme', 'fields' => array( 'name' => array('type' => self::TYPE_STRING, 'validate' => 'isGenericName', 'size' => 64), ), ); public static function getThemes() { $sql = 'SELECT * FROM '._DB_PREFIX_.'theme ORDER BY name'; return Db::getInstance()->executeS($sql); } }