Gets the jnode_id for the JFusion Plugin
@param string $jname name of the JFusion plugin used
@return string jnodeid for the JFusion Plugin
198763
public static function getPluginNodeId($jname) {
		$params = static::getParams($jname);
		$source_url = $params->get('source_url');
		return strtolower(rtrim(parse_url($source_url, PHP_URL_HOST) . parse_url($source_url, PHP_URL_PATH), '/'));
	}
1195371
static function getParentNodeId( $nodeID )
    {
        if ( !isset( $nodeID ) )
            return null;
        $db = eZDB::instance();
        $nodeID =(int) $nodeID;
        $parentArr = $db->arrayQuery( "SELECT
                                              parent_node_id
                                       FROM
                                              ezcontentobject_tree
                                       WHERE
                                              node_id = $nodeID");
        return $parentArr[0]['parent_node_id'];
    }
966292
public function get_old_parentid($itemname) {
        return array_key_exists($itemname, $this->elementsoldid) ? $this->elementsoldid[$itemname] : null;
    }
583299
public function documentName($documentName)
    {
        if (!$this->expr->isEmpty()) {
            //TODO: exception
        }

        $this->discriminatorValues = $this->getDiscriminatorValuesFor((array)$documentName);

        if (is_array($documentName)) {
            $documentName = reset($documentName);
        }

        $class = $this->dm->getClassMetadata($documentName);

        if ($class->isEmbeddedDocument) {
            //TODO: exception
        }

        if ($class->isInheritanceTypeSingleTable() && $class->name !== $class->rootDocumentName) {
            $class = $this->dm->getClassMetadata($class->rootDocumentName);
        }

        $classChanged = $this->class !== $class;
        $this->class  = $class;

        if ($this->isQueryOrScan() && $classChanged) {
            $this->setQueryClassFromDefaults();
        }
    }
455731
public String getId(Node node) {
        String id = null;
        try {
            id = node.getIdentifier();
        } catch (RepositoryException e) {
            id = node.toString(); // use Java 'ID'
        }
        return id;
    }
958341
public function getChave($nodeName = 'infNFe')
    {
        $node = $this->getElementsByTagName($nodeName)->item(0);
        if (! empty($node)) {
            $chaveId = $node->getAttribute('Id');
            $chave = preg_replace('/[^0-9]/', '', $chaveId);

            return $chave;
        }

        return '';
    }
1360627
private function getServerIdFromConfig($varName)
    {
        $constNameLength = strlen(self::CONFIG_NAME_FOR_SERVER_INFO);
        $id = substr($varName, $constNameLength);
        return $id;
    }
1214636
private function extractIdentifier( $filename )
    {
        // Regex to split up the file name into id, attributes and extension
        $regex = '(
            (?:' . preg_quote( $this->properties['location'] ) . ')
            (?P<id>.*)
            (?P<attr>(?:-[^-=]+=[^-]+)*)
            -? # This is added if no attributes are supplied. For whatever reason...
            (?P<ext>' . preg_quote( $this->options->extension ) . ')
        )Ux';

        if ( preg_match( $regex, $filename, $matches ) !== 1 )
        {
            // @TODO: Should this be an exception?
            return array(
                'id'         => '',
                'attributes' => '',
                'extension'  => $this->options->extension,
            );
        }
        else
        {
            // Successfully split
            return array(
                'id'         => $matches['id'],
                'attributes' => $matches['attr'],
                'extension'  => $matches['ext'],
            );
        }
    }
409402
public static function getDocumentID($source) 
    {
        if ($source instanceof DOMDOCUMENT) {
            foreach(phpQuery::$documents as $id => $document) {
                if ($source->isSameNode($document->document)) {
                    return $id;
                }
            }
        } else if ($source instanceof DOMNODE) {
            foreach(phpQuery::$documents as $id => $document) {
                if ($source->ownerDocument->isSameNode($document->document)) {
                    return $id;
                }
            }
        } else if ($source instanceof phpQueryObject) {
            return $source->getDocumentID();
        } else if (is_string($source) && isset(phpQuery::$documents[$source])) {
            return $source;
        }
    }
1296849
static function getObjectIdsInNodeSubTree($node)
    {
        $db = eZDB::instance();
        $nodePath =  $node->attribute( 'path_string' );
        $pathString = " path_string like '$nodePath%' AND ";

        $objectIDArray = $db->arrayQuery( "SELECT
                                           ezcontentobject.id
                                    FROM
                                           ezcontentobject_tree, ezcontentobject
                                    WHERE
                                          $pathString
                                          ezcontentobject_tree.contentobject_id=ezcontentobject.id AND
                                          ezcontentobject_tree.main_node_id=ezcontentobject_tree.node_id" );

        if ( count( $objectIDArray ) == 0 )
            return null;

        $objectSimpleIDArray = array();

        foreach ( $objectIDArray as $objectID )
        {
            $objectSimpleIDArray[] = $objectID['id'];
        }

        return $objectSimpleIDArray;
    }
432325
protected function getElementGroup($elementName)
    {
        $returnValue =  '';

		foreach($this->groups as $groupName => $group){
				if(in_array($elementName, $group['elements'])){
					$returnValue = $groupName;
					break;
				}
		}

        return $returnValue;
    }
1206228
public function getClassId($className)
    {
        $xPath = new DOMXPath($this->_getInitialDom());
        $nodeList = $xPath->query("//*[@cl='{$className}' or @list='{$className}']");
        if ($nodeList->length && ($firstItem = $nodeList->item(0))) {
            return $firstItem->getAttribute('id');
        }
    }
374095
protected function getTagName($node)
    {
        if (isset($node->tagName)) {
            return $node->tagName;
        } else if (isset($node->nodeName)) {
            return $node->nodeName;
        } else if (isset($node->localName)) {
            return $node->localName;
        }
        return null;
    }
774180
public function getId()
    {
        return $this->getCachedProperty(
            'id',
            function () {
                /** @var Element $this */
                return $this->getExtensions()->parseElement(
                    $this,
                    $this->query('atom:id', Node::SINGLE | Node::REQUIRED)
                );
            }
        );
    }
1056179
static function nodeAliasID( $nodeName )
    {
        if ( is_numeric( $nodeName ) )
            return $nodeName;
        $browseINI = eZINI::instance( 'browse.ini' );
        $aliasList = $browseINI->variable( 'BrowseSettings', 'AliasList' );
        if ( isset( $aliasList[$nodeName] ) )
            return $aliasList[$nodeName];
        $contentINI = eZINI::instance( 'content.ini' );
        if ( $nodeName == 'content' )
            return $contentINI->variable( 'NodeSettings', 'RootNode' );
        else if ( $nodeName == 'users' )
            return $contentINI->variable( 'NodeSettings', 'UserRootNode' );
        else if ( $nodeName == 'media' )
            return $contentINI->variable( 'NodeSettings', 'MediaRootNode' );
        else if ( $nodeName == 'setup' )
            return $contentINI->variable( 'NodeSettings', 'SetupRootNode' );
        else
            return false;
    }
946205
public function getParameterId($name)
	{
		$uid = $this->getUniqueId();
		return $uid === '' ? $name : $uid . self::NAME_SEPARATOR . $name;
	}
212356
protected function getId()
  {
    if($this->currObj instanceof Server)
    {
      return "ts3_s" . $this->currObj->virtualserver_id;
    }
    elseif($this->currObj instanceof Channel)
    {
      return "ts3_c" . $this->currObj->cid;
    }
    elseif($this->currObj instanceof Client)
    {
      return "ts3_u" . $this->currObj->clid;
    }

    return FALSE;
  }