Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace MarketPlace\Attributes\Form\Element;
- use Zend\Form\Element;
- use Zend\ServiceManager\ServiceLocatorInterface;
- use Zend\ServiceManager\ServiceLocatorAwareInterface;
- class AttributesValidations extends Element implements ServiceLocatorAwareInterface
- {
- protected $_serviceLocator;
- protected $class_list;
- public function __construct(){
- $this->_class_list = $this->validationList();
- }
- public function setServiceLocator(ServiceLocatorInterface $serviceLocator) {
- $this->_serviceLocator = $serviceLocator;
- }
- public function getServiceLocator() {
- return $this->_serviceLocator;
- }
- public function validationList() {
- $validateClass = $this->getServiceLocator()->get('validate_class');
- return $validateClass;
- }
- }
Add Comment
Please, Sign In to add comment