Правило для файлов + Рекурсивное создание папки

This commit is contained in:
Фёдор Подлеснов 2016-07-27 15:02:04 +03:00
parent 405192f96a
commit 233e90ce72
5 changed files with 72 additions and 11 deletions

View file

@ -6,7 +6,7 @@ abstract class Rule_Abstract
protected $errorMsg;
protected $ctx;
public function __construct($field, $errorMsg)
public function __construct($field, $errorMsg = false)
{
$this->field = $field;
$this->errorMsg = $errorMsg;
@ -31,7 +31,11 @@ abstract class Rule_Abstract
public function isValid(Collection $container, $status = null)
{
//
return true;
}
function skipEmpty() {
return true;
}
public function setContext($ctx)