Правило для файлов + Рекурсивное создание папки
This commit is contained in:
parent
405192f96a
commit
233e90ce72
5 changed files with 72 additions and 11 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue