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

        $this->validateAddress();
        $this->validateCountryAddress();

        $this->validateStateAddress();
        $this->validateCityAddress();
        $this->validateTypeAddress();
        $this->validateFieldsAddress();
        $this->validateUserIdAddress();
        $this->validateData();

        $this->unsetSubmitted('update');

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

        $this->validateAddress();
        $this->validateCountryAddress();

        $this->validateStateAddress();
        $this->validateCityAddress();
        $this->validateTypeAddress();
        $this->validateFieldsAddress();
        $this->validateUserIdAddress();
        $this->validateData();

        $this->unsetSubmitted('update');

        return $this->getResult();
    }
public function address ( array & $ submitted , array $ options = array ( ) ) { $ this -> options = $ options ; $ this -> submitted = & $ submitted ; $ this -> validateAddress ( ) ; $ this -> validateCountryAddress ( ) ; $ this -> validateStateAddress ( ) ; $ this -> validateCityAddress ( ) ; $ this -> validateTypeAddress ( ) ; $ this -> validateFieldsAddress ( ) ; $ this -> validateUserIdAddress ( ) ; $ this -> validateData ( ) ; $ this -> unsetSubmitted ( 'update' ) ; return $ this -> getResult ( ) ; }
Performs full address data validation
@param array $submitted
@param array $options
@return array|boolean
Performs full address data validation