コード例 #1
0
 /**
  * Humanize a model name
  *
  * @param boolean $lowercase Wether the result should be lowercased
  * @return string The humanized string
  */
 public function render($lowercase = false)
 {
     $content = $this->renderChildren();
     return $this->inflector->humanizeCamelCase($content, $lowercase);
 }
コード例 #2
0
 /**
  * Pluralize a word
  *
  * @return string The pluralized string
  */
 public function render()
 {
     $content = $this->renderChildren();
     return $this->inflector->pluralize($content);
 }