LazyRecord\Inflector::humanize PHP 메소드

humanize() 공개 메소드

(Underscores are replaced by spaces and capitalized following words.).
public humanize ( $lowerCaseAndUnderscoredWord ) : string
리턴 string Human-readable string
    public function humanize($lowerCaseAndUnderscoredWord)
    {
        $_this =& self::getInstance();
        if (!($result = $_this->_cache(__FUNCTION__, $lowerCaseAndUnderscoredWord))) {
            $result = ucwords(str_replace('_', ' ', $lowerCaseAndUnderscoredWord));
            $_this->_cache(__FUNCTION__, $lowerCaseAndUnderscoredWord, $result);
        }
        return $result;
    }