function getID($ConditionString,$Rest=null)
    {
        $args=func_get_args();
        array_shift($args);
        $Query="SELECT {$this->id()} AS ID FROM {$this->table()} WHERE $ConditionString LIMIT 1";
        array_unshift($args,$Query);
        $Res=call_user_func_array(("Jf::sql"),$args);
        if ($Res)
        return $Res[0]["ID"];
        else
        	return null;
    }
function getID($ConditionString,$Rest=null)
    {
        $args=func_get_args();
        array_shift($args);
        $Query="SELECT {$this->id()} AS ID FROM {$this->table()} WHERE $ConditionString LIMIT 1";
        array_unshift($args,$Query);
        $Res=call_user_func_array(("Jf::sql"),$args);
        if ($Res)
        return $Res[0]["ID"];
        else
        	return null;
    }
function getID ( $ ConditionString , $ Rest = null ) { $ args = func_get_args ( ) ; array_shift ( $ args ) ; $ Query = "SELECT {$this->id()} AS ID FROM {$this->table()} WHERE $ConditionString LIMIT 1" ; array_unshift ( $ args , $ Query ) ; $ Res = call_user_func_array ( ( "Jf::sql" ) , $ args ) ; if ( $ Res ) return $ Res [ 0 ] [ "ID" ] ; else return null ; }
Returns the ID of a node based on a SQL conditional string
It accepts other params in the PreparedStatements format
@param string $Condition the SQL condition, such as Title=?
@param string $Rest optional, rest of variables to fill in placeholders of condition string, one variable for each ? in condition
@return Integer ID
Returns the ID of a node based on a SQL conditional string It accepts other params in the PreparedStatements format