Esta clase empezo siendo un adapter para KumbiaPHP, para despues convertirse en una LIB y con ello poder olvidarme del viejo y pesado active record.
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 | |
/** | |
* Clase que genera HTML del framework CSS "Materialize" | |
* Actualmente se encuentra en desarrollo y se pretende tener una compilación de recursos decente para uso y disfute de todos. | |
*/ | |
class Materialize | |
{ | |
/** | |
* ESTABLECEMOS LOS VALORES POR DEFECTO POR ICONO | |
*/ |
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 # CREADA EN EL 2009 | |
class Curl | |
{ | |
static function file($url, $dest) | |
{ | |
$i = curl_init(); | |
curl_setopt($i, CURLOPT_URL, $url); | |
$referer = Str::cut($url, array('beg' => 'http://', 'end' => '/'), 1); | |
curl_setopt($i, CURLOPT_REFERER, $referer); |
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 | |
/** | |
* SAK, ABREVIATURA DE NAVAJA SUIZA, FUNCIONES PHP DE USO FRECUENTE | |
*/ | |
class Sak | |
{ | |
public static $css = array(); # Sak::$css[$media][] | |
public static $js = array(); # Sak::$js[$hook][] | |
public static $meta = array(); # Sak::$meta[] | |
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 | |
/* | |
* A PARTIR DE UN OBJETO AR CON UN CAMPO LLAMADO PESO Y UN FORMATO DE NUMEROS | |
* SEPARADOS POR PUNTOS, OBTENEMOS UNA MATRIZ ANIDADA PARA SU PRESENTACION EN | |
* ARBOL. | |
* | |
* EJEMPLO: | |
* 1 | |
* 1.1 | |
* 1.2 |
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 | |
/** | |
* Clase para imprimir variables PHP en la consola del navegador. | |
* | |
* Esta clase ha sido creada a partir de esta otra: | |
* http://www.codeforest.net/debugging-php-in-browsers-javascript-console | |
*/ | |
class Console | |
{ | |
/** |
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 | |
class Be | |
{ | |
public static function get($from, $to) | |
{ | |
if ( ! file_exists($to) ) self::put(file_get_contents($from), $to); | |
} | |
public static function put($content, $to) | |
{ | |
if ( ! file_exists($to) ) file_put_contents($to, $content); |
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 | |
/** | |
*/ | |
class Kubar | |
{ | |
public static $bar_bg = '#FE4747'; | |
public static $menu_bg = '#00A1CB'; | |
public static $td_border = '1px dotted #EEE'; | |
public static $td_color = 'white'; | |
public static $button_selected = '#FFFC19'; |
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() | |
{ | |
/* INPUT LIVE FILTER */ | |
$('body').on( 'keyup', '.js-filter', function() | |
{ | |
var item = $(this).data('to'); | |
var search = $(this).val(); | |
$(item).hide(); | |
$(item+":icontains('"+search+"')").show(); |
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 | |
/** | |
* NAVAJA SUIZA | |
*/ | |
class _ | |
{ | |
/** | |
* IMPRIME VARIABLES EN PANTALLA | |
*/ | |
static function r($x='') |
OlderNewer