function editData($FieldValueArray=array(),$ConditionString=null,$Rest=null)
    {
        //Find the Sibling
        $Arguments=func_get_args();
        array_shift($Arguments); //first argument, the array
        array_shift($Arguments);
        if ($ConditionString) $ConditionString="WHERE $ConditionString";



        $FieldsString="";
        $Values=array();
        if ($FieldValueArray)
        foreach($FieldValueArray as $k=>$v)
        {
            if ($FieldsString!="") $FieldsString.=",";
            $FieldsString.="`".$k."`=?";
            $Values[]=$v;
        }
        $Query="UPDATE {$this->table()} SET $FieldsString $ConditionString";

        array_unshift($Values,$Query);
        $Arguments=array_merge($Values,$Arguments);

        return call_user_func_array("Jf::sql",$Arguments);
    }
function editData($FieldValueArray=array(),$ConditionString=null,$Rest=null)
    {
        //Find the Sibling
        $Arguments=func_get_args();
        array_shift($Arguments); //first argument, the array
        array_shift($Arguments);
        if ($ConditionString) $ConditionString="WHERE $ConditionString";



        $FieldsString="";
        $Values=array();
        if ($FieldValueArray)
        foreach($FieldValueArray as $k=>$v)
        {
            if ($FieldsString!="") $FieldsString.=",";
            $FieldsString.="`".$k."`=?";
            $Values[]=$v;
        }
        $Query="UPDATE {$this->table()} SET $FieldsString $ConditionString";

        array_unshift($Values,$Query);
        $Arguments=array_merge($Values,$Arguments);

        return call_user_func_array("Jf::sql",$Arguments);
    }
function editData ( $ FieldValueArray = array ( ) , $ ConditionString = null , $ Rest = null ) { //Find the Sibling $ Arguments = func_get_args ( ) ; array_shift ( $ Arguments ) ; //first argument, the array array_shift ( $ Arguments ) ; if ( $ ConditionString ) $ ConditionString = "WHERE $ConditionString" ; $ FieldsString = "" ; $ Values = array ( ) ; if ( $ FieldValueArray ) foreach ( $ FieldValueArray as $ k => $ v ) { if ( $ FieldsString != "" ) $ FieldsString .= "," ; $ FieldsString .= "`" . $ k . "`=?" ; $ Values [ ] = $ v ; } $ Query = "UPDATE {$this->table()} SET $FieldsString $ConditionString" ; array_unshift ( $ Values , $ Query ) ; $ Arguments = array_merge ( $ Values , $ Arguments ) ; return call_user_func_array ( "Jf::sql" , $ Arguments ) ; }
Edits a node

@param Array $FieldValueArray Pairs of Key/Value as Field/Value in the table to edit
@param string $ConditionString
@param string $Rest optional, rest of variables to fill in placeholders of condition string, one variable for each ? in condition
@return Integer SiblingID
Edits a node