- Abstract Class
- Craft\CraftPackage » Craft\BaseEnum
- Deprecated in
- This class has been deprecated since Craft 2.0 since Craft no longer has packages.
The CraftPackage class is an abstract class that defines all of the packages that are available in Craft.
This class is a poor man's version of an enum, since PHP does not have support for native enumerations.
See also http://craftcms.com
# Public Methods
|isValidName()||Checks to see if the given name is valid in the enum.|
|isValidValue()||Checks to see if the given value is valid in the enum.|
public Craft\CraftPackage __construct ( )