public function taxonomy($var = null)
    {
        if ($var !== null) {
            // make sure first level are arrays
            array_walk($var, function(&$value) {
                $value = (array) $value;
            });
            // make sure all values are strings
            array_walk_recursive($var, function(&$value) {
                $value = (string) $value;
            });
            $this->taxonomy = $var;
        }

        return $this->taxonomy;
    }
public function taxonomy($var = null)
    {
        if ($var !== null) {
            // make sure first level are arrays
            array_walk($var, function(&$value) {
                $value = (array) $value;
            });
            // make sure all values are strings
            array_walk_recursive($var, function(&$value) {
                $value = (string) $value;
            });
            $this->taxonomy = $var;
        }

        return $this->taxonomy;
    }
public function taxonomy ( $ var = null ) { if ( $ var !== null ) { // make sure first level are arrays array_walk ( $ var , function ( & $ value ) { $ value = ( array ) $ value ; } ) ; // make sure all values are strings array_walk_recursive ( $ var , function ( & $ value ) { $ value = ( string ) $ value ; } ) ; $ this -> taxonomy = $ var ; } return $ this -> taxonomy ; }
Gets and sets the taxonomy array which defines which taxonomies this page identifies itself with.

@param  array $var an array of taxonomies

@return array      an array of taxonomies
Gets and sets the taxonomy array which defines which taxonomies this page identifies itself with .