This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @package Koowa.Plugin | |
* @subpackage Docman | |
* | |
* @license GNU General Public License version 2 or later; see LICENSE.txt | |
*/ | |
defined('KOOWA') or die; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($){ | |
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} | |
} |
NewerOlder