Skip to content

Instantly share code, notes, and snippets.

Oli Griffiths oligriffiths

Block or report user

Report or block oligriffiths

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
oligriffiths / gist:5940659
Last active Dec 19, 2015
Docman example plugin
View gist:5940659
* @package Koowa.Plugin
* @subpackage Docman
* @license GNU General Public License version 2 or later; see LICENSE.txt
defined('KOOWA') or die;
View DataTable
var filters = {
int: function(value){return typeof parseInt(value) !== 'NaN' ? parseInt(value) : null},
float: function(value){return typeof parseFloat(value) !== 'NaN' ? parseFloat(value) : null},
string: function(value){return ['string','boolean','number'].indexOf(typeof value) !== -1 ? value+'' : null},
array: function(value){return typeof value === 'object' && value.constructor === Array ? value : null},
object: function(value){return typeof value === 'object' ? value : null}
You can’t perform that action at this time.