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
<?php | |
/** | |
* (extremely) simple class to convert a DOMNode to an array. | |
* @todo Add support for attributes, namespaces and other goodies... | |
*/ | |
class XmlToArray | |
{ | |
/** | |
* Checks if node has any children other than just text | |
* |
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
<?php | |
class Flattr | |
{ | |
const VERSION = '0.9.18'; | |
const WP_MIN_VER = '2.9'; | |
const API_SCRIPT = 'api.flattr.com/js/0.6/load.js?mode=auto'; | |
/** @var array */ | |
protected static $categories = array('text', 'images', 'audio', 'video', 'software', 'rest'); |
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
<?php | |
define('FLAG_0', 1); | |
define('FLAG_1', 2); | |
define('FLAG_2', 4); | |
define('FLAG_3', 8); | |
/** | |
* Will fail when setting multiple flags at once | |
*/ |
NewerOlder