當前位置: 首頁>>代碼示例>>PHP>>正文


PHP GridConnector類代碼示例

本文整理匯總了PHP中GridConnector的典型用法代碼示例。如果您正苦於以下問題:PHP GridConnector類的具體用法?PHP GridConnector怎麽用?PHP GridConnector使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了GridConnector類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: data

 public function data()
 {
     //data feed
     $this->load->database();
     $connector = new GridConnector($this->db, "phpCI");
     $connector->configure("events", "event_id", "start_date, end_date, event_name");
     $connector->event->attach($this);
     $connector->render();
 }
開發者ID:FAVHYAN,項目名稱:a3workout,代碼行數:9,代碼來源:grid.php

示例2: data

 public function data()
 {
     //data feed
     $this->load->database();
     $this->load->model("event_model");
     $connector = new GridConnector($this->db, "PHPCI");
     $connector->configure("events", "event_id", "start_date, end_date, event_name");
     $connector->useModel($this->event_model);
     $connector->render();
 }
開發者ID:FAVHYAN,項目名稱:a3workout,代碼行數:10,代碼來源:gridmodel.php

示例3: filter_gridAction

 public function filter_gridAction()
 {
     require_once '../vendor/dhtmlx/dhtmlxConnector/codebase/grid_connector.php';
     $database_host = $this->container->getParameter('database_host');
     $database_port = $this->container->getParameter('database_port');
     $database_name = $this->container->getParameter('database_name');
     $database_user = $this->container->getParameter('database_user');
     $database_password = $this->container->getParameter('database_password');
     $conn = mysql_connect($database_host, $database_user, $database_password);
     mysql_select_db($database_name);
     $data = new \GridConnector($conn);
     $data->render_table('arii_filter', "ID", "filter,title,spooler,job,job_chain,order_id,status");
 }
開發者ID:AxelANGENAULT,項目名稱:CoreBundle,代碼行數:13,代碼來源:DBController.php

示例4: jobsAction

 public function jobsAction()
 {
     require_once '../vendor/dhtmlx/dhtmlxConnector/codebase/grid_connector.php';
     $database_host = $this->container->getParameter('database_host');
     $database_port = $this->container->getParameter('database_port');
     $database_name = $this->container->getParameter('database_name');
     $database_user = $this->container->getParameter('database_user');
     $database_password = $this->container->getParameter('database_password');
     $conn = mysql_connect($database_host, $database_user, $database_password);
     mysql_select_db($database_name);
     $data = new \GridConnector($conn);
     $qry = "select name,title,spooler_id,process_class,visible from joe_job order by name";
     $data->event->attach("beforeRender", array($this, "render_jobs"));
     $data->render_sql($qry, 'ID', 'name,title,spooler_id,process_class,visible');
 }
開發者ID:cleverage,項目名稱:JOEBundle,代碼行數:15,代碼來源:DBController.php

示例5: PDO

<?php

require_once "../config.php";
require "../../codebase/db_pdo.php";
$res = new PDO($mysql_server, $mysql_user, $mysql_pass);
require "../../codebase/grid_connector.php";
$grid = new GridConnector($res, "PDO");
$grid->dynamic_loading(100);
$grid->render_table("countries", "item_id", "item_nm,item_cd");
開發者ID:slothfk,項目名稱:connector-php,代碼行數:9,代碼來源:05_select_filter_connector.php

示例6: pg_connect

<?php

require_once "../config.php";
$postrgre_connection = "host=192.168.1.251 port=5432 dbname=sampledb user=pguser password=pgpass";
$res = pg_connect($postrgre_connection);
require "../../codebase/grid_connector.php";
require "../../codebase/db_postgre.php";
$grid = new GridConnector($res, "PDO", "Postgre");
$grid->dynamic_loading(100);
$grid->render_table("grid50000", "item_id", "item_nm,item_cd");
開發者ID:slothfk,項目名稱:connector-php,代碼行數:10,代碼來源:xx_sample_postgresql_connector.php

示例7: mysql_connect

<?php

require "../codebase/connector/grid_connector.php";
$res = mysql_connect("localhost", "root", "");
mysql_select_db("dhtmlx_tutorial");
$conn = new GridConnector($res, "MySQL");
$conn->render_table("contacts", "contact_id", "fname,lname,email");
開發者ID:xgbj,項目名稱:share_platom_upload,代碼行數:7,代碼來源:contacts.php

示例8: mysql_connect

<?php

require_once "../config.php";
$res = mysql_connect($mysql_server, $mysql_user, $mysql_pass);
mysql_select_db($mysql_db);
require "../../codebase/grid_connector.php";
$grid = new GridConnector($res);
$grid->dynamic_loading(100);
/*$filter1 = new OptionsConnector($res);
	$filter1->render_table("countries","item_id","item_id(value),item_nm(label)");
	$grid->set_options("item_nm",$filter1);*/
$filter1 = new OptionsConnector($res);
$filter1->render_table("countries", "item_id", "item_id(value),item_nm(label)");
$grid->set_options("item_nm", $filter1);
$grid->render_table("grid50000", "item_id", "item_nm,item_cd");
開發者ID:elsonvinicius,項目名稱:framework,代碼行數:15,代碼來源:06_combo_connector.php

示例9: SQLite3

<?php

require_once "../config.php";
$db = new SQLite3('mysqlitedb.db');
require "../../codebase/grid_connector.php";
require "../../codebase/db_sqlite3.php";
$grid = new GridConnector($db, "SQLite3");
$grid->render_table("grid50000", "item_id", "item_nm,item_cd");
開發者ID:slothfk,項目名稱:connector-php,代碼行數:8,代碼來源:xx_sample_sqlite3_connector.php

示例10: mysqli

<?php

require "../config.php";
require "../../codebase/db_mysqli.php";
require "../../codebase/grid_connector.php";
$mysqli = new mysqli($server, $user, $pass, $mysql_db);
if (mysqli_connect_errno()) {
    printf("Подключение к серверу MySQL невозможно. Код ошибки: %s\n", mysqli_connect_error());
    exit;
}
$grid = new GridConnector($mysqli, "MySQLi");
$grid->enable_log("temp.log", true);
$grid->render_table("events", "event_id", "event_name,details");
開發者ID:quantrocket,項目名稱:planlogiq,代碼行數:13,代碼來源:xx_sample_mysqli_connector.php

示例11: sasql_connect

<?php

require_once "../config.php";
$res = sasql_connect($sasql_conn);
require "../../codebase/grid_connector.php";
require "../../codebase/db_sasql.php";
$grid = new GridConnector($res, "SaSQL");
$grid->enable_log("temp.log", true);
$grid->dynamic_loading(100);
$grid->render_table("Contacts", "ID", "Surname,GivenName,Title");
開發者ID:elsonvinicius,項目名稱:framework,代碼行數:10,代碼來源:xx_sample_sasql_connector.php

示例12: GridConnector

<?php

require_once 'config.php';
require_once "../codebase/dhtmlx/grid_connector.php";
$conn = new GridConnector($conn);
$conn->enable_log("log.txt", true);
$conn->render_table("Generators", "generator_id", "generator_id,batch_number ,supplier_name ,arrival_date ,arrival_username,decommission_date,decommission_username");
?>

開發者ID:neohusky,項目名稱:NMIS,代碼行數:8,代碼來源:gridGenerators.php

示例13: GridConnector

<?php

require_once 'config.php';
require_once "../codebase/dhtmlx/grid_connector.php";
$conn = new GridConnector($conn);
$conn->enable_log("log.txt", true);
$conn->render_complex_sql("SELECT * FROM generators WHERE decommission_date IS NULL", "generator_id", "generator_id,batch_number ,supplier_name ,arrival_date ,arrival_username,decommission_date,decommission_username,return_date,qc_moly_status,qc_alum__status,qc_visual_status,site");
?>

開發者ID:neohusky,項目名稱:NMIS,代碼行數:8,代碼來源:gridGeneratorsActive.php

示例14: PDO

<?php

require_once "../config.php";
require "../../codebase/db_pdo.php";
$res = new PDO($mysql_server, $mysql_user, $mysql_pass);
require "../../codebase/grid_connector.php";
$grid = new GridConnector($res, "PDO");
$grid->set_config(false);
$grid->dynamic_loading(100);
$grid->render_table("grid50000", "item_id", "item_nm,item_cd");
開發者ID:slothfk,項目名稱:connector-php,代碼行數:10,代碼來源:10_auto_config.php

示例15: GridConnector

<?php

require "../../codebase/db_filesystem.php";
require "../../codebase/grid_connector.php";
$grid = new GridConnector("c:/", "FileSystem");
$grid->render_table("../", "safe_name", "filename,full_filename,size,name,extention,date,is_folder");
開發者ID:quantrocket,項目名稱:planlogiq,代碼行數:6,代碼來源:13_filesystem_grid_connector.php


注:本文中的GridConnector類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。