public function setDefaults()
	{
		foreach ($this->items as $item)
		{
			$name = $item->getName();
			if ( ! is_null($name) && ! isset($this->instance->$name))
			{
				$this->instance->$name = $item->getDefault();
			}
		}
	}
public function setDefaults()
	{
		foreach ($this->items as $item)
		{
			$name = $item->getName();
			if ( ! is_null($name) && ! isset($this->instance->$name))
			{
				$this->instance->$name = $item->getDefault();
			}
		}
	}
public function setDefaults ( ) { foreach ( $ this -> items as $ item ) { $ name = $ item -> getName ( ) ; if ( ! is_null ( $ name ) && ! isset ( $ this -> instance -> $ name ) ) { $ this -> instance -> $ name = $ item -> getDefault ( ) ; } } }
Set default values for instance
Set default values for instance