libraries/Items/BItemsItem.php
protected function loadItem(&$obj, $item) {
		switch ($item) {
			case 'id':
				$this->id = (int)$obj['id'];
				return true;
			case 'published':
				$this->published = $obj['published'];
				return true;
			case 'name':
				$this->name_ru = $obj['name_ru'];
				$this->name_ua = $obj['name_ua'];
				return true;
			case 'alias':
				$this->alias_ru = $obj['alias_ru'];
				$this->alias_ua = $obj['alias_ua'];
				return true;
			case 'created':
				$this->created = new \Brilliant\BDateTime($obj['created']);
				return true;
			case 'modified':
				$this->modified = new \Brilliant\BDateTime($obj['modified']);
				return true;
		}
		return false;
	}
protected function loadItem(&$obj, $item) {
		switch ($item) {
			case 'id':
				$this->id = (int)$obj['id'];
				return true;
			case 'published':
				$this->published = $obj['published'];
				return true;
			case 'name':
				$this->name_ru = $obj['name_ru'];
				$this->name_ua = $obj['name_ua'];
				return true;
			case 'alias':
				$this->alias_ru = $obj['alias_ru'];
				$this->alias_ua = $obj['alias_ua'];
				return true;
			case 'created':
				$this->created = new \Brilliant\BDateTime($obj['created']);
				return true;
			case 'modified':
				$this->modified = new \Brilliant\BDateTime($obj['modified']);
				return true;
		}
		return false;
	}
protected function loadItem ( & $ obj , $ item ) { switch ( $ item ) { case 'id' : $ this -> id = ( int ) $ obj [ 'id' ] ; return true ; case 'published' : $ this -> published = $ obj [ 'published' ] ; return true ; case 'name' : $ this -> name_ru = $ obj [ 'name_ru' ] ; $ this -> name_ua = $ obj [ 'name_ua' ] ; return true ; case 'alias' : $ this -> alias_ru = $ obj [ 'alias_ru' ] ; $ this -> alias_ua = $ obj [ 'alias_ua' ] ; return true ; case 'created' : $ this -> created = new \ Brilliant \ BDateTime ( $ obj [ 'created' ] ) ; return true ; case 'modified' : $ this -> modified = new \ Brilliant \ BDateTime ( $ obj [ 'modified' ] ) ; return true ; } return false ; }
Load item by type

@param $obj
@param $item
@return bool
Load item by type