/library/Ecart/Collect/Skin.php
PHP | 64 lines | 21 code | 2 blank | 41 comment | 3 complexity | 3de7f7855bc57aef9094479a1080af84 MD5 | raw file
Possible License(s): GPL-3.0, LGPL-2.1
- <?php
- /**
- * Ecart
- *
- * This file is part of Ecart.
- *
- * Ecart is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * Ecart is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with Ecart. If not, see <http://www.gnu.org/licenses/>.
- *
- * @category Ecart
- * @package Ecart_View
- * @copyright Copyright 2008-2009 E-Cart LLC
- * @license GNU Public License V3.0
- */
- /**
- *
- * @category Ecart
- * @package Ecart_View
- * @subpackage Collect
- * @author Ecart Core Team <core@ecartcommerce.com>
- */
- class Ecart_Collect_Skin implements Ecart_Collect_Interface
- {
- /**
- *
- * @static
- * @return array
- */
- public static function collect()
- {
- $path = Ecart::config()->system->path . '/app/design/front';
- $dh = opendir($path);
- $skins = array();
- while (($file = readdir($dh))) {
- if ($file[0] == '.')
- continue;
- $skins[$file] = $file;
- }
- closedir($dh);
- return $skins;
- }
- /**
- *
- * @static
- * @param string $id
- * @return string
- */
- public static function getName($id)
- {
- return $id;
- }
- }