Source of file ArticlesTypes.php
Size: 2,392 Bytes - Last Modified: 2015-02-05T12:57:19+01:00
/www-data/git/ricardo/src/Diglin/Ricardo/Enums/Article/ArticlesTypes.php
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 | <?php /** * Diglin GmbH - Switzerland * * This file is part of a Diglin GmbH module. * * This Diglin GmbH module is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License version 3 as * published by the Free Software Foundation. * * This script 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. * * @author Sylvain Rayé <support at diglin.com> * @category Diglin * @package Diglin_Ricardo * @copyright Copyright (c) 2011-2015 Diglin (http://www.diglin.com) * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) */ namespace Diglin\Ricardo\Enums\Article; use Diglin\Ricardo\Enums\AbstractEnums; /** * Class ArticlesTypes * @package Diglin\Ricardo\Enums\Article */ class ArticlesTypes extends AbstractEnums { /* Ricardo API Enum article types */ // All articles const ALL = 0; // All vehicle articles, that means cars bikes others and utilities type. Could be the same result than "All" type if we search only classified articles const VEHICLES = 1; // Only core articles const CORE = 2; // Accessories articles const ACCESSORIES = 3; // Cars articles const CARS = 4; // Bikes articles const BIKES = 5; // Others articles const OTHERS = 6; // Utilities articles const UTILITIES = 7; // CarsAndBikes articles [Accessory, Car, Bike, Utilities, Other] const CARSANDBIKES = 8; /** * @return array */ public static function getEnums() { return array( array('label' => 'ALL', 'value' => self::ALL), array('label' => 'VEHICLES', 'value' => self::VEHICLES), array('label' => 'CORE', 'value' => self::CORE), array('label' => 'ACCESSORIES', 'value' => self::ACCESSORIES), array('label' => 'CARS', 'value' => self::CARS), array('label' => 'BIKES', 'value' => self::BIKES), array('label' => 'OTHERS', 'value' => self::OTHERS), array('label' => 'UTILITIES', 'value' => self::UTILITIES), array('label' => 'CARS_AND_BIKES', 'value' => self::CARSANDBIKES) ); } } |