final public function populateByRequest() {

		$args = func_get_args();

		// all subclass binds
		$binds = static::getBinds();

		foreach ($binds as $property => $field) {

			// check that property is in the args or that args is not defined at all
			if (!count($args) or (isset($args[0]) and in_array($property, $args[0]))) {
				
				$type = $this->getPropertyType($property);
				
				if (Input::isSent($property) or 'bool' == $type) {
					
					// assign the value to this object property
					$this->__set($property, Input::get($property));
					
				}

			}

		}

	}
final public function populateByRequest() {

		$args = func_get_args();

		// all subclass binds
		$binds = static::getBinds();

		foreach ($binds as $property => $field) {

			// check that property is in the args or that args is not defined at all
			if (!count($args) or (isset($args[0]) and in_array($property, $args[0]))) {
				
				$type = $this->getPropertyType($property);
				
				if (Input::isSent($property) or 'bool' == $type) {
					
					// assign the value to this object property
					$this->__set($property, Input::get($property));
					
				}

			}

		}

	}
final public function populateByRequest ( ) { $ args = func_get_args ( ) ; // all subclass binds $ binds = static :: getBinds ( ) ; foreach ( $ binds as $ property => $ field ) { // check that property is in the args or that args is not defined at all if ( ! count ( $ args ) or ( isset ( $ args [ 0 ] ) and in_array ( $ property , $ args [ 0 ] ) ) ) { $ type = $ this -> getPropertyType ( $ property ) ; if ( Input :: isSent ( $ property ) or 'bool' == $ type ) { // assign the value to this object property $ this -> __set ( $ property , Input :: get ( $ property ) ) ; } } } }
Populates the inherited object with input vars with same name as properties.

@param	string	Optional list of properties to populate, comma separated. If no items,
will tries to populate all fields.
Populates the inherited object with input vars with same name as properties .