Ticket #323 (closed Feature Request: fixed)

Opened 11 months ago

Last modified 11 months ago

Validation library

Reported by: alexsancho Owned by: - No owner -
Priority: major Milestone: 2.1
Component: Libraries:Validation Version: SVN HEAD
Keywords: validation Cc:

Description

With current validation, it's no posible to validate data after library constructor, there should be another method to fill $this->data after contructor. I suggest to add and optional parameter to Validation::run

	public function run(array $data = null)
	{
		if(!is_null($data)) $this->data =& $data;
                ....
        }

Change History

Changed 11 months ago by armen

Fixed in r1734

Changed 11 months ago by armen

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.