public function getFlagStatus($flag = null)
    {
        if (!$flag || !isset($this->flags[$flag])) {
            return $this->flags;
        } else {
            return $this->flags[$flag];
        }
    }
public function getFlagStatus($flag = null)
    {
        if (!$flag || !isset($this->flags[$flag])) {
            return $this->flags;
        } else {
            return $this->flags[$flag];
        }
    }
public function getFlagStatus ( $ flag = null ) { if ( ! $ flag || ! isset ( $ this -> flags [ $ flag ] ) ) { return $ this -> flags ; } else { return $ this -> flags [ $ flag ] ; } }
Returns the status of a given flag.

@param string $flag The flag to return status for, NULL to return all flags as array

@author Benjamin Carl <opensource@clickalicious.de>

@return mixed Boolean TRUE if flag is supported, otherwise FALSE if not - Array of all flags
Returns the status of a given flag .