Example #1
0
            exit;
        }
    }
    /**
     *
     * @return int
     */
    public function getDescription()
    {
        return $this->description;
    }
    /**
     *
     * @param int $value
     */
    public function setDescription($value)
    {
        if ($this->description != $value) {
            $this->description = $value;
            $query = "UPDATE `codev_command_provision_table` SET description = '{$value}' WHERE id = " . $this->id . ";";
            $result = SqlWrapper::getInstance()->sql_query($query);
            if (!$result) {
                echo "<span style='color:red'>ERROR: Query FAILED</span>";
                exit;
            }
        }
    }
}
// Initialize complex static variables
CommandProvision::staticInit();