本文整理汇总了PHP中DataConnector::render_table方法的典型用法代码示例。如果您正苦于以下问题:PHP DataConnector::render_table方法的具体用法?PHP DataConnector::render_table怎么用?PHP DataConnector::render_table使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DataConnector
的用法示例。
在下文中一共展示了DataConnector::render_table方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: DataConnector
<?php
require_once "../../../common/config.php";
$data = new DataConnector($conn, $dbtype);
$data->add_section("config", '
<columns stack="true">
<column id="package" header="Name" width="200"></column>
<column id="section" header="Section" width="120"></column>
<column id="size" header="Size" width="80"></column>
<column id="architecture" header="PC" width="60"></column>
</columns>
<height>100</height>
<autowidth>true</autowidth>
');
$data->render_table("packages_plain", "id", "package, size, architecture, section");
示例2: DataConnector
<?php
$db = new SQLite3('../../common/testdata.sqlite');
require "../../common/connector/data_connector.php";
require "../../common/connector/db_sqlite3.php";
ConnectorSecurity::$xss = DHX_SECURITY_SAFEHTML;
$conn = new DataConnector($db, "SQLite3");
$conn->render_table("films", "id", "title,year,votes,rating,rank");
示例3: DataConnector
<?php
require_once "../../../common/config.php";
$data = new DataConnector($conn, $dbtype);
$data->render_table("packages_plain", "id", "package,version,maintainer");