public function assignVariables(array $variables)
    {
        // assume successful result
        $result = count($variables) ? true : false;

        // iterate and assign
        foreach ($variables as $variable => $value) {
            $result = ($result && $this->assignVariable($variable, $value));
        }

        // return result of assigning
        return $result;
    }
public function assignVariables(array $variables)
    {
        // assume successful result
        $result = count($variables) ? true : false;

        // iterate and assign
        foreach ($variables as $variable => $value) {
            $result = ($result && $this->assignVariable($variable, $value));
        }

        // return result of assigning
        return $result;
    }
public function assignVariables ( array $ variables ) { // assume successful result $ result = count ( $ variables ) ? true : false ; // iterate and assign foreach ( $ variables as $ variable => $ value ) { $ result = ( $ result && $ this -> assignVariable ( $ variable , $ value ) ) ; } // return result of assigning return $ result ; }
method to assign more than one variable at once

This method is intend to assign more than one variable at once

@param array $variables The variables to assign as array

@author Benjamin Carl <opensource@clickalicious.de>
@return bool TRUE if successful, otherwise FALSE
@access public
method to assign more than one variable at once