This file contains hidden or 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
/** | |
* Conditionally compiles an array of classes and contrainnts into a CSS class string | |
* | |
* The array key contains the classes you wish to add | |
* The value is a boolean expression | |
* | |
* If the array element has a numeric key, it will always be included | |
*/ | |
function arrayToCssClasses($inArrClasses) |
This file contains hidden or 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
DELIMITER $$ | |
CREATE DEFINER=`root`@`localhost` FUNCTION `greeklish`(input text charset utf8) RETURNS text CHARSET utf8 | |
BEGIN | |
DECLARE result text charset utf8 DEFAULT ''; | |
DECLARE len INT(4) DEFAULT 0; | |
DECLARE pos INT(4) DEFAULT 1; | |
DECLARE letter VARCHAR(10) charset utf8; | |
SET input = LOWER(input); | |
SET len = CHAR_LENGTH(input); |
OlderNewer