Пример #1
0
	public function __construct(NStatement $statement)
	{
		$data = array();
		foreach ($this as $key => $value) {
			$data[$key] = $value;
			unset($this->$key);
		}
		foreach ($statement->normalizeRow($data) as $key => $value) {
			$this->$key = $value;
		}
	}
Пример #2
0
	public function __construct(NStatement $statement)
	{
		$statement->normalizeRow($this);
	}