protected function options(array $requested = [], array $allowed = [])
    {
        foreach ($allowed as $key => $value) {
            if (isset($requested[$value]) === true) {
                $this->{$value} = $requested[$value];
            }
        }

        return $this;
    }
protected function options(array $requested = [], array $allowed = [])
    {
        foreach ($allowed as $key => $value) {
            if (isset($requested[$value]) === true) {
                $this->{$value} = $requested[$value];
            }
        }

        return $this;
    }
protected function options ( array $ requested = [ ] , array $ allowed = [ ] ) { foreach ( $ allowed as $ key => $ value ) { if ( isset ( $ requested [ $ value ] ) === true ) { $ this -> { $ value } = $ requested [ $ value ] ; } } return $ this ; }
This method is intend to import the requested datafields as object variables if allowed.

@param array $requested The values which should be imported as variable into class-namespace
@param array $allowed   The allowed keys (variable-names) - allowed to import

@author Benjamin Carl <opensource@clickalicious.de>
@return $this Instance for chaining
@access protected
This method is intend to import the requested datafields as object variables if allowed .