Diglin\Ricardo\Enums\Article\PromotionCode
Class PromotionCode
Synopsis
class PromotionCode
extends AbstractEnums
{
- // constants
- const SUBTITLE = 1;
- const BUYNOW = 2;
- const PREMIUMHOMEPAGE = 4;
- const SHOWCASE = 8;
- const THUMBNAIL = 16;
- const MYARTICLES = 32;
- const AUTOMATICINCREMENT = 64;
- const PREMIUMCATEGORYBRONZE = 128;
- const PREMIUMCATEGORYSILVER = 256;
- const PREMIUMCATEGORYGOLD = 512;
- const PICTURE1 = 1024;
- const PICTURE2 = 2048;
- const PICTURE3 = 4096;
- const PICTURE4 = 8192;
- const PICTURE5 = 16384;
- const PICTURE6 = 32768;
- const PICTURE7 = 65536;
- const PICTURE8 = 131072;
- const PICTURE9 = 262144;
- const PICTURE10 = 524288;
- const LOGINUSER = 1048576;
- const PERSONALHOMEPAGE = 2097152;
- const BOLD = 4194304;
- const HIGHLIGHT = 8388608;
- const PREMIUMCATEGORY = 16777216;
- const PLANNEDARTICLE = 33554432;
- // methods
- public static array getEnums()
- // Inherited methods from AbstractEnums
- public static array getEnums()
- public static bool getLabel()
- public static array getValues()
Hierarchy
Constants
Name | Value |
---|---|
SUBTITLE | 1 |
BUYNOW | 2 |
PREMIUMHOMEPAGE | 4 |
SHOWCASE | 8 |
THUMBNAIL | 16 |
MYARTICLES | 32 |
AUTOMATICINCREMENT | 64 |
PREMIUMCATEGORYBRONZE | 128 |
PREMIUMCATEGORYSILVER | 256 |
PREMIUMCATEGORYGOLD | 512 |
PICTURE1 | 1024 |
PICTURE2 | 2048 |
PICTURE3 | 4096 |
PICTURE4 | 8192 |
PICTURE5 | 16384 |
PICTURE6 | 32768 |
PICTURE7 | 65536 |
PICTURE8 | 131072 |
PICTURE9 | 262144 |
PICTURE10 | 524288 |
LOGINUSER | 1048576 |
PERSONALHOMEPAGE | 2097152 |
BOLD | 4194304 |
HIGHLIGHT | 8388608 |
PREMIUMCATEGORY | 16777216 |
PLANNEDARTICLE | 33554432 |
Methods
public
- getEnums() — Return the list of current enums
Inherited from Diglin\Ricardo\Enums\AbstractEnums
public
History
-
2014-09-28T11:22:59+02:00 (commit #3e11a2c)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
Update the License to OSL v3.0, add license file, change code header and composer.json
-
2014-09-04T17:15:35+02:00 (commit #9286388)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
[]RIC-38 Add log implementation for unit test, structure differently enumeration classes, update the constant of the enums in the different classes
-
2014-08-14T21:20:33+02:00 (commit #20dedaa)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
[RIC-38] Add enums for promotion code and payment methods. Add also a way to get label from enums in the model abstract