set_prefix() public method

Set field name prefix. Calling this method will update the current field name and the conditional logic fields.
public set_prefix ( string $prefix ) : object
$prefix string
return object $this
Exemplo n.º 1
0
 /**
  * Generate and set the field prefix.
  * @param string $prefix
  */
 public function set_prefix($prefix)
 {
     parent::set_prefix($prefix);
     foreach ($this->groups as $group) {
         $group->set_prefix($prefix);
     }
 }