本文整理汇总了PHP中Trigger::getDatas方法的典型用法代码示例。如果您正苦于以下问题:PHP Trigger::getDatas方法的具体用法?PHP Trigger::getDatas怎么用?PHP Trigger::getDatas使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Trigger
的用法示例。
在下文中一共展示了Trigger::getDatas方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getData
copyright : (C) 2000 by Thomas Fromm
email : tf@tfromm.com
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
include "prepend.inc.php";
$Server = getData("Server", "integer");
$User = getData("User");
$tri = new Trigger($Server);
$tri->getDatas($User);
$html = "<H1> Database " . $DB->Name($Server) . " - Trigger overview of User {$User}</H1>\n";
$html .= "<TABLE BORDER=0>\n<TR><TH>Name</TH><TH>Type</TH><TH>On</TH><TH>Status</TH></TR>\n";
$x = 0;
if (is_array($tri->datas[$User])) {
foreach ($tri->datas[$User] as $trigger) {
$html .= $x % 2 ? "<tr bgcolor=\"#EEEEEE\" valign=top>" : "<tr bgcolor=\"#CCCCCC\" valign=top>";
$html .= "<td class=data><b>" . $trigger["TRIGGER_NAME"] . "</b></td>";
$html .= "<td>" . $trigger["TYPE"] . "</td>";
$html .= "<td>" . $trigger["TABLE_OWNER"] . "." . $trigger["TABLE_NAME"] . "</td>";
$html .= "<td>" . $trigger["STATUS"] . "</td>";
$html .= "</tr>";
$x++;
}
}
$html .= "</table>";