Ejemplo n.º 1
0
 public function display_field()
 {
     return fancyize(array($this->string));
 }
Ejemplo n.º 2
0
 public function get_full_name($fancy = false)
 {
     $parts = $this->get_full_name_parts();
     return $fancy ? fancyize($parts) : implode(' ', $parts);
     // TODO move fancyize to Inflector
 }
Ejemplo n.º 3
0
 public function display_field($scaffold_name, $fancy = true, $separator = ', ')
 {
     $parts = array();
     foreach ($this->{$scaffold_name . '_fields'} as $field) {
         if ($fancy || $this->{$field} != null) {
             array_push($parts, method_exists($this, $tmp = 'get_' . $field) ? $this->{$tmp}() : $this->{$field});
         }
     }
     return $fancy ? fancyize($parts) : implode($separator, $parts);
 }