Download the PHP package openlss/lib-datatables without Composer

On this page you can find all versions of the php package openlss/lib-datatables. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package lib-datatables

openlss/lib-datatables

PHP Interface for jQuery Datatables (http://datatables.net). Simple standalone, non-framework based.

This document assumes you have a working datatables frontend. Just point it to the usage code below.

Usage

This is the standard usage which builds and executes queries on the provided Db object.

This is the alternative syntax where a Data Callback function is defined

openlss/lib-datamodels Usage

Methods

(object) DataTables::_get()

Returns a new object same as

($this) DataTables::setDB(\LSS\Db $obj)

Set the LSS\Db object to call queries on

($this) DataTables::setColumns($array)

Set the array of columns in the table (should match SQL names)

($this) DataTables::setPrimary($val)

Set the primary column name (can be an array for multiple columns)

($this) DataTables::setTable($val)

Set the database table to use (can be multiple just separate with commas) NOTE: currently does not support joins

($this) DataTables::setDataCallback($callback,[$arg1,$arg2...])

Set the data callback function to provide data rather than direct DB querying The proper return is a 3-part array consisting of

($this) DataTables::setDataModel($val)

Set the datamodel class to use. By Default uses \LSS\DataModel with no extensions

($this) DataTables::setParams($name,$val)

Store arbitrary params for use in resulting JSON

(int) DataTables::getColumnCount()

Returns the number of columns set (caches the result for speed)

(string) DataTables::getColumnByKey($key)

Returns the column name by index number

(mixed) DataTables::getParam($key)

Returns the value of a set param by name (key)

(string) DataTables::getJSON()

Returns JSON built from result array

(array) DataTables::getResult()

Return the built result array

($this) DataTables::setupFromRequest()

Sets up all the various portions needed for query generation from $_REQUEST

($this) DataTables::setupPaging($start=null,$limit=null)

Setup paging for SQL

($this) DataTables::setupOrdering((mixed...))

Dynamic function for setting up ordering Argument format is:

($this) DataTables::setupFiltering((mixed...))

NOTE this does not match the built-in DataTables filtering which does it word by word on any field. It's possible to do here, but concerned about efficiency on very large tables, and MySQL's regex functionality is very limited Dynamic function for setting up filtering Argument format is:

($this) DataTables::setupQueries()

Sets up SQL queries based on collected data

($this) DataTables::proces()

Run queries and build result array

(string) DataTables::__toString()

Returns the resulting JSON when the object is used as a string


All versions of lib-datatables with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.2
openlss/lib-db Version ~0.0.1
openlss/lib-datamodel Version ~0.0.1
openlss/func-mda Version ~0.0.1
openlss/func-mda-glob Version ~0.0.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package openlss/lib-datatables contains the following files

Loading the files please wait ....