Пример #1
0
 function __construct($targettype, $targetname, $offendingtype, $offendingname, $debuginfo = null)
 {
     $a = new stdClass();
     $a->targettype = $targettype;
     $a->targetname = $targetname;
     $a->offendingtype = $offendingtype;
     $a->offendingname = $offendingname;
     parent::__construct('ddldependencyerror', $a, $debuginfo);
 }
Пример #2
0
 function __construct($error, $sql = null)
 {
     $this->error = $error;
     $this->sql = $sql;
     $errorinfo = s($error) . '<br /><br />' . s($sql);
     parent::__construct('ddlexecuteerror', NULL, $errorinfo);
 }