public function category(array &$submitted, array $options = array())
    {
        $this->options = $options;
        $this->submitted = &$submitted;

        $this->validateCategory();
        $this->validateWeight();
        $this->validateBool('status');
        $this->validateTitle();
        $this->validateMetaTitle();
        $this->validateMetaDescription();
        $this->validateDescriptionCategory();
        $this->validateGroupCategory();
        $this->validateParentCategory();
        $this->validateTranslation();
        $this->validateImages();
        $this->validateAlias();
        $this->validateUploadImages('category');

        $this->unsetSubmitted('update');

        return $this->getResult();
    }
public function category(array &$submitted, array $options = array())
    {
        $this->options = $options;
        $this->submitted = &$submitted;

        $this->validateCategory();
        $this->validateWeight();
        $this->validateBool('status');
        $this->validateTitle();
        $this->validateMetaTitle();
        $this->validateMetaDescription();
        $this->validateDescriptionCategory();
        $this->validateGroupCategory();
        $this->validateParentCategory();
        $this->validateTranslation();
        $this->validateImages();
        $this->validateAlias();
        $this->validateUploadImages('category');

        $this->unsetSubmitted('update');

        return $this->getResult();
    }
public function category ( array & $ submitted , array $ options = array ( ) ) { $ this -> options = $ options ; $ this -> submitted = & $ submitted ; $ this -> validateCategory ( ) ; $ this -> validateWeight ( ) ; $ this -> validateBool ( 'status' ) ; $ this -> validateTitle ( ) ; $ this -> validateMetaTitle ( ) ; $ this -> validateMetaDescription ( ) ; $ this -> validateDescriptionCategory ( ) ; $ this -> validateGroupCategory ( ) ; $ this -> validateParentCategory ( ) ; $ this -> validateTranslation ( ) ; $ this -> validateImages ( ) ; $ this -> validateAlias ( ) ; $ this -> validateUploadImages ( 'category' ) ; $ this -> unsetSubmitted ( 'update' ) ; return $ this -> getResult ( ) ; }
Performs full category data validation
@param array $submitted
@param array $options
@return boolean|array
Performs full category data validation