本文整理汇总了PHP中Table::Table方法的典型用法代码示例。如果您正苦于以下问题:PHP Table::Table方法的具体用法?PHP Table::Table怎么用?PHP Table::Table使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Table
的用法示例。
在下文中一共展示了Table::Table方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: TblTeams
function TblTeams($name, $op, $id, $cup_id)
{
Table::Table($name, $op, $id);
$this->cfg->team->name = "team";
$this->cfg->team->public_name = _Druzyna;
$this->cfg->team->type = 'text';
$this->cfg->team->maxlength = 32;
$this->cfg->team->not_empty = 1;
$this->cfg->team->edit = 1;
$this->cfg->cpt_pn->name = "cpt_pn";
$this->cfg->cpt_pn->public_name = _Kapitan;
$this->cfg->cpt_pn->db_list2 = '' . _DB_PREFIX . '_players';
$this->cfg->cpt_pn->db_list_pk = "player_number";
$this->cfg->cpt_pn->db_list_sel1 = "lname";
$this->cfg->cpt_pn->db_list_sel2 = "fname";
// $this->cfg->cpt_pn->db_list_cond = " team_id = 0 ";
$this->cfg->cpt_pn->db_list_cond = " cup_id = " . $cup_id;
$this->cfg->cpt_pn->not_empty = 0;
// $this->cfg->cpt_pn->no_add = 1;
$this->cfg->cup_id->name = "cup_id";
$this->cfg->cup_id->public_name = _CUPNAME;
$this->cfg->cup_id->db_list = '' . _DB_PREFIX . '_cups';
$this->cfg->cup_id->db_list_pk = "id";
$this->cfg->cup_id->db_list_sel = "cup";
$this->cfg->cup_id->db_list_cond = " close = 0";
$this->cfg->cup_id->not_empty = 1;
}
示例2: TrackDayCountsTable
function TrackDayCountsTable($m, $params, $unused)
{
parent::Table($m, $params);
$this->set_fields(array('posted_when', 'tracks'));
$this->set_field_option('posted_when', 'datetime');
$this->process_options($params);
}
示例3: ZebraTable
/**
* Constructor for a HTML table.
* @param array List of attribute/value pairs for html styles.
**/
function ZebraTable($styles = "", $switcherClass = "", $headerClass = "", $hovercolor = "", $nohovercolor = "")
{
Table::Table($styles);
$this->classcnt = 0;
//Counter
$this->JSenabled = $GLOBALS["auth"]->auth["jscript"];
$this->hoverenabled = FALSE;
if (is_array($switcherClass)) {
$this->switcherClass = $switcherClass;
} else {
$this->switcherClass = array("table_row_odd", "table_row_even");
}
if ($headerClass) {
$this->header_class = $headerClass;
} else {
$this->header_class = "table_header";
}
if (is_array($hovercolor)) {
$this->hovercolor = $hovercolor;
} else {
$this->hovercolor = array("#B7C2E2", "#CED8F2");
}
if (is_array($nohovercolor)) {
$this->nohovercolor = $nohovercolor;
} else {
$this->nohovercolor = array("#E2E2E2", "#F2F2F2");
}
}
示例4: ErrorsTable
function ErrorsTable($m, $params, $unused)
{
parent::Table($m, $params);
$this->set_fields(array('jobs', 'message', 'type', 'start'));
$this->set_field_option('start', 'datetime-key');
$this->set_field_option('jobs', 'num');
$this->process_options($params);
}
示例5: ResourcesTable
function ResourcesTable($m, $params, $unused)
{
parent::Table($m);
$this->set_fields(array('id', 'name', 'interval', 'latest_run'));
$this->set_field_option('latest_run', 'datetime-key');
$this->set_field_option('interval', 'time');
$this->set_default_ordering('latest_run', 'DESC');
$this->process_options($params);
}
示例6: TrackCountsTable
function TrackCountsTable($m, $params, $unused)
{
parent::Table($m, $params);
$this->set_fields(array('blog', 'feed', 'tracks'));
$this->set_field_option('blog', 'sql-name', 's.site_url');
$this->set_field_option('feed', 'sql-name', 'f.url');
$this->set_field_option('feed', 'search');
$this->set_default_ordering('s.site_url', 'ASC');
$this->process_options($params);
}
示例7: ContentTable
function ContentTable($styles = "")
{
Table::Table($styles);
if (!@$styles["width"]) {
$this->table_width = "99%";
}
if (!@$styles["align"]) {
$this->table_align = "center";
}
}
示例8: FeedTable
function FeedTable($m, $params, $unused)
{
parent::Table($m, $params);
$this->set_fields(array('id', 'url', 'title', 'task', 'periodicity', 'kind', 'tags', 'mod_date', 'items', 'errors', '2_weeks'));
$this->set_field_option('id', 'sql-name', 'f.id');
$this->set_field_option('url', 'sql-name', 'f.url');
$this->set_field_option('items', 'num');
$this->set_field_option('errors', 'num');
$this->set_field_option('title', 'truncate', 30);
$this->process_options($params);
}
示例9: TasksTable
function TasksTable($m, $params, $unused)
{
parent::Table($m, $params);
$this->set_fields(array('id', 'type', 'program', 'args', 'state', 'hostname', 'periodicity', 'latest_run', 'jobs', 'resource'));
$this->set_field_option('latest_run', 'datetime');
$this->set_field_option('id', 'sql-name', 't.id');
$this->set_field_option('type', 'sql-name', 't.type');
$this->set_field_option('resource', 'sql-name', 'resource_id');
$this->set_default_ordering('latest_run', 'DESC');
$this->process_options($params);
}
示例10: ContainerTable
function ContainerTable($styles = "")
{
Table::Table($styles);
if (!@$styles["width"]) {
$this->table_width = "100%";
}
if (!@$styles["class"]) {
$this->table_class = "blank";
}
$this->row_class = "blank";
$this->cell_class = "blank";
}
示例11: FeedItemCommentCountsTable
function FeedItemCommentCountsTable($m, $params, $unused)
{
parent::Table($m, $params);
$this->set_fields(array('id', 'url', 'title', 'comments', 'kind', 'tags', 'mod_date'));
$this->set_field_option('id', 'sql-name', 'f.id');
$this->set_field_option('url', 'sql-name', 'f.url');
$this->set_field_option('comments', 'num');
$this->set_field_option('kind', 'sql-name', 'm.kind');
$this->set_field_option('tags', 'sql-name', 'm.tags');
//$this->set_field_option('c.pub_date', 'datetime-key');
$this->process_options($params);
$this->max_limit = 200;
}
示例12: JobsTable
function JobsTable($m, $params, $unused)
{
parent::Table($m, $params);
$this->set_fields(array('id', 'task', 'type', 'program', 'args', 'state', 'hostname', 'attempts', 'message', 'output', 'scheduled', 'start', 'resource', 'actions'));
$this->set_field_option('start', 'datetime');
$this->set_field_option('scheduled', 'datetime');
$this->set_field_option('message', 'expand', 20);
$this->set_field_option('output', 'expand', 20);
$this->set_field_option('attempts', 'num');
$this->set_field_option('resource', 'sql-name', 'resource_id');
$this->set_field_option('actions', 'flushright');
$this->set_default_ordering('scheduled', 'ASC');
$this->process_options($params);
}
示例13: FeedItemCommentsTable
function FeedItemCommentsTable($m, $params, $unused)
{
parent::Table($m, $params);
$this->set_fields(array('id', 'item', 'feed', 'tags', 'pub_date', 'mod_date', 'content', 'author', 'jobs', 'link'));
$this->set_field_option('item', 'sql-name', 'feed_item_id');
$this->set_field_option('feed', 'sql-name', 'i.feed_id');
//$this->set_field_option('item', 'sql-name', 'c.feed_item_id');
$this->set_field_option('pub_date', 'datetime-key');
$this->set_field_option('title', 'expand', 50);
$this->set_field_option('content', 'expand', 90);
$this->set_default_ordering('pub_date', 'DESC');
$this->process_options($params);
$this->max_limit = 200;
$this->interval = '*';
}
示例14: FeedItemTable
function FeedItemTable($m, $params, $unused)
{
parent::Table($m, $params);
$this->set_fields(array('id', 'feed', 'tags', 'pub_date', 'fetch_date', 'title', 'summary', 'content', 'jobs', 'comments', 'link'));
$this->set_field_option('id', 'sql-name', 'i.id');
$this->set_field_option('feed', 'sql-name', 'i.feed_id');
$this->set_field_option('pub_date', 'datetime-key');
$this->set_field_option('title', 'expand', 100);
$this->set_field_option('summary', 'expand', 200);
$this->set_field_option('content', 'expand', 500);
$this->set_field_option('content', 'dynamic', TRUE);
$this->limit = 10;
$this->process_options($params);
$this->max_limit = 200;
}
示例15: EnclosuresTable
function EnclosuresTable($m, $params, $unused)
{
parent::Table($m, $params);
$this->set_fields(array('id', 'feed', 'feed_item', 'link', 'title', 'description', 'mime', 'pub_date', 'mod_date'));
$this->set_field_option('pub_date', 'sql-name', 'e.pub_date');
$this->set_field_option('pub_date', 'datetime-key');
$this->set_field_option('feed', 'sql-name', 'i.feed');
$this->set_field_option('feed_item', 'sql-name', 'e.feed_item_id');
//$this->set_field_option('periodicity', 'time');
//$this->set_field_option('id', 'sql-name', 'e.id');
//$this->set_field_option('type', 'sql-name', 't.type');
$this->set_field_option('title', 'truncate', 30);
$this->set_field_option('description', 'truncate', 30);
$this->set_default_ordering('id', 'DESC');
$this->process_options($params);
}