public function display_field() { return fancyize(array($this->string)); }
public function get_full_name($fancy = false) { $parts = $this->get_full_name_parts(); return $fancy ? fancyize($parts) : implode(' ', $parts); // TODO move fancyize to Inflector }
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); }