private getValidator ( |
||
$model | model in which context validator should be created. | |
리턴 | the declared validator. |
private function getValidator($model = null)
{
if ($this->_validator === null) {
$this->_validator = $this->createEmbeddedValidator($model);
}
return $this->_validator;
}