protected function _validateCustom(Pengin_Form_Property $property) { $name = $property->getName(); $name = Pengin_Inflector::pascalize($name); $customMethod = 'validate' . $name; if (method_exists($this, $customMethod) === true) { $this->{$customMethod}($property); } }
public function pascalize($string) { return Pengin_Inflector::pascalize($string); }