src/Core/JsonTrait.php
public function setJson($json)
    {
        global $CFG, $PDOX;

        $q = $PDOX->queryDie("UPDATE {$CFG->dbprefix}{$this->TABLE_NAME}
                SET json = :SET WHERE $this->PRIMARY_KEY = :PK",
            array(":SET" => $json, ":PK" => $this->id)
        );
    }
public function setJson($json)
    {
        global $CFG, $PDOX;

        $q = $PDOX->queryDie("UPDATE {$CFG->dbprefix}{$this->TABLE_NAME}
                SET json = :SET WHERE $this->PRIMARY_KEY = :PK",
            array(":SET" => $json, ":PK" => $this->id)
        );
    }
public function setJson ( $ json ) { global $ CFG , $ PDOX ; $ q = $ PDOX -> queryDie ( "UPDATE {$CFG->dbprefix}{$this->TABLE_NAME}
                SET json = :SET WHERE $this->PRIMARY_KEY = :PK" , array ( ":SET" => $ json , ":PK" => $ this -> id ) ) ; }
Set the JSON entry for this entity

@params $json This is a string - no validation is done
Set the JSON entry for this entity