protected function locateDataObject(SimpleXMLElement $element, CNabuDataObject $data_parent = null) : bool
    {
        $retval = false;
        
        if (isset($element['GUID'])) {
            $guid = (string)$element['GUID'];
            if (!($this->nb_data_object instanceof CNabuSiteTargetLanguageList)) {
                $this->nb_data_object = CNabuSiteTargetLanguageList::findByHash($guid);
            } else {
                $this->nb_data_object = null;
            }
        
            if (!($this->nb_data_object instanceof CNabuSiteTargetLanguageList)) {
                $this->nb_data_object = new CNabuSiteTargetLanguageList();
                $this->nb_data_object->setHash($guid);
            }
            $retval = true;
        }
        
        return $retval;
    }
protected function locateDataObject(SimpleXMLElement $element, CNabuDataObject $data_parent = null) : bool
    {
        $retval = false;
        
        if (isset($element['GUID'])) {
            $guid = (string)$element['GUID'];
            if (!($this->nb_data_object instanceof CNabuSiteTargetLanguageList)) {
                $this->nb_data_object = CNabuSiteTargetLanguageList::findByHash($guid);
            } else {
                $this->nb_data_object = null;
            }
        
            if (!($this->nb_data_object instanceof CNabuSiteTargetLanguageList)) {
                $this->nb_data_object = new CNabuSiteTargetLanguageList();
                $this->nb_data_object->setHash($guid);
            }
            $retval = true;
        }
        
        return $retval;
    }
protected function locateDataObject ( SimpleXMLElement $ element , CNabuDataObject $ data_parent = null ) : bool { $ retval = false ; if ( isset ( $ element [ 'GUID' ] ) ) { $ guid = ( string ) $ element [ 'GUID' ] ; if ( ! ( $ this -> nb_data_object instanceof CNabuSiteTargetLanguageList ) ) { $ this -> nb_data_object = CNabuSiteTargetLanguageList :: findByHash ( $ guid ) ; } else { $ this -> nb_data_object = null ; } if ( ! ( $ this -> nb_data_object instanceof CNabuSiteTargetLanguageList ) ) { $ this -> nb_data_object = new CNabuSiteTargetLanguageList ( ) ; $ this -> nb_data_object -> setHash ( $ guid ) ; } $ retval = true ; } return $ retval ; }
Locate a Data Object.
@param SimpleXMLElement $element Element to locate the Data Object.
@param CNabuDataObject $data_parent Data Parent object.
@return bool Returns true if the Data Object found or false if not.
Locate a Data Object .