libraries/Items/BItemsItemTree.php
protected function getfieldsvalues(&$qr_fields,&$qr_values){
		$qr_fields=array();
		$qr_values=array();
		parent::getfieldsvalues($qr_fields,$qr_values);
		$parent=$this->getparent();
		if(empty($parent)){
			$collectionName=$this->collectionName;
			$collection=$collectionName::getInstance();
			$parent=$collection->itemGet(1);
			$this->{$this->parentKeyName}=1;
			}
		$qr_fields[]=$this->parentKeyName;
		$qr_values[]=$this->{$this->parentKeyName};
		$qr_fields[]=$this->leftKeyName;
		$qr_values[]=$this->{$this->leftKeyName};
		$qr_fields[]=$this->rightKeyName;
		$qr_values[]=$this->{$this->rightKeyName};
		$qr_fields[]=$this->levelKeyName;
		$qr_values[]=$this->{$this->levelKeyName};
		return true;
		}
protected function getfieldsvalues(&$qr_fields,&$qr_values){
		$qr_fields=array();
		$qr_values=array();
		parent::getfieldsvalues($qr_fields,$qr_values);
		$parent=$this->getparent();
		if(empty($parent)){
			$collectionName=$this->collectionName;
			$collection=$collectionName::getInstance();
			$parent=$collection->itemGet(1);
			$this->{$this->parentKeyName}=1;
			}
		$qr_fields[]=$this->parentKeyName;
		$qr_values[]=$this->{$this->parentKeyName};
		$qr_fields[]=$this->leftKeyName;
		$qr_values[]=$this->{$this->leftKeyName};
		$qr_fields[]=$this->rightKeyName;
		$qr_values[]=$this->{$this->rightKeyName};
		$qr_fields[]=$this->levelKeyName;
		$qr_values[]=$this->{$this->levelKeyName};
		return true;
		}
protected function getfieldsvalues ( & $ qr_fields , & $ qr_values ) { $ qr_fields = array ( ) ; $ qr_values = array ( ) ; parent :: getfieldsvalues ( $ qr_fields , $ qr_values ) ; $ parent = $ this -> getparent ( ) ; if ( empty ( $ parent ) ) { $ collectionName = $ this -> collectionName ; $ collection = $ collectionName :: getInstance ( ) ; $ parent = $ collection -> itemGet ( 1 ) ; $ this -> { $ this -> parentKeyName } = 1 ; } $ qr_fields [ ] = $ this -> parentKeyName ; $ qr_values [ ] = $ this -> { $ this -> parentKeyName } ; $ qr_fields [ ] = $ this -> leftKeyName ; $ qr_values [ ] = $ this -> { $ this -> leftKeyName } ; $ qr_fields [ ] = $ this -> rightKeyName ; $ qr_values [ ] = $ this -> { $ this -> rightKeyName } ; $ qr_fields [ ] = $ this -> levelKeyName ; $ qr_values [ ] = $ this -> { $ this -> levelKeyName } ; return true ; }
Get fields values
@param $qr_fields
@param $qr_values
@return bool
Get fields values