models/Post.php
public function getStatusAsString($status)
    {
        $options = self::getStatusOptions();
        return isset($options[$status]) ? $options[$status] : '';
    }
public function getStatusAsString($status)
    {
        $options = self::getStatusOptions();
        return isset($options[$status]) ? $options[$status] : '';
    }
public function getStatusAsString ( $ status ) { $ options = self :: getStatusOptions ( ) ; return isset ( $ options [ $ status ] ) ? $ options [ $ status ] : '' ; }
Returns a string representation of the model's categories

@return string The category of this model as a string
Returns a string representation of the model s categories