public function returnId($entity = null)
	{
	    if (substr ($entity, 0, 1) == "/") {
	        $entityID = $this->pathId($entity);
	    } else {
	        $entityID = $this->titleId($entity);
	    }

	    return $entityID;
	}
public function returnId($entity = null)
	{
	    if (substr ($entity, 0, 1) == "/") {
	        $entityID = $this->pathId($entity);
	    } else {
	        $entityID = $this->titleId($entity);
	    }

	    return $entityID;
	}
public function returnId ( $ entity = null ) { if ( substr ( $ entity , 0 , 1 ) == "/" ) { $ entityID = $ this -> pathId ( $ entity ) ; } else { $ entityID = $ this -> titleId ( $ entity ) ; } return $ entityID ; }
Returns ID of entity

@param string $entity (Path or Title)

@return mixed ID of entity or null
Returns ID of entity