Doctrine 1.2.4
Doctrine_Validator_Driver Class Reference

Inherited by Doctrine_Validator_Country, Doctrine_Validator_Creditcard, Doctrine_Validator_Date, Doctrine_Validator_Email, Doctrine_Validator_HtmlColor, Doctrine_Validator_Ip, Doctrine_Validator_Minlength, Doctrine_Validator_Nospace, Doctrine_Validator_Notblank, Doctrine_Validator_Notnull, Doctrine_Validator_Range, Doctrine_Validator_Readonly, Doctrine_Validator_Regexp, Doctrine_Validator_Time, Doctrine_Validator_Timestamp, Doctrine_Validator_Unique, Doctrine_Validator_Unsigned, and Doctrine_Validator_Usstate.

Public Member Functions

 __get ($arg)
 
 __isset ($arg)
 
 __set ($arg, $value)
 
 getArg ($arg)
 
 getArgs ()
 
 setArg ($arg, $value)
 

Detailed Description

Definition at line 33 of file Driver.php.

Member Function Documentation

Doctrine_Validator_Driver::__get (   $arg)

__get an alias for getOption

Parameters
string$arg

Definition at line 48 of file Driver.php.

{
if (isset($this->args[$arg])) {
return $this->args[$arg];
}
return null;
}
Doctrine_Validator_Driver::__isset (   $arg)

__isset

Parameters
string$arg

Definition at line 61 of file Driver.php.

{
return isset($this->args[$arg]);
}
Doctrine_Validator_Driver::__set (   $arg,
  $value 
)

sets given value to an argument

Parameters
$argthe name of the option to be changed
$valuethe value of the option
Returns
Doctrine_Validator_Driver this object

Definition at line 73 of file Driver.php.

{
$this->args[$arg] = $value;
return $this;
}
Doctrine_Validator_Driver::getArg (   $arg)

returns the value of an argument

Parameters
$argthe name of the option to retrieve
Returns
mixed the value of the option

Definition at line 86 of file Driver.php.

{
if ( ! isset($this->args[$arg])) {
throw new Doctrine_Validator_Exception('Unknown option ' . $arg);
}
return $this->args[$arg];
}
Doctrine_Validator_Driver::getArgs ( )

returns all args and their associated values

Returns
array all args as an associative array

Definition at line 114 of file Driver.php.

{
return $this->args;
}
Doctrine_Validator_Driver::setArg (   $arg,
  $value 
)

sets given value to an argument

Parameters
$argthe name of the option to be changed
$valuethe value of the option
Returns
Doctrine_Validator_Driver this object

Definition at line 102 of file Driver.php.

{
$this->args[$arg] = $value;
return $this;
}

The documentation for this class was generated from the following file: