return in_array($addon, self::$addons);
}
+ /**
+ * Returns a list of the enabled addon names
+ *
+ * @return array
+ */
public static function getEnabledList()
{
return self::$addons;
/**
* Returns the list of callbacks for a single hook
*
- * @param string $name
+ * @param string $name Name of the hook
* @return array
*/
public static function getByName($name)
*
* Use this function when you want to fork a hook via the worker.
*
- * @param string $name of the hook to call
- * @param string|array $data to transmit to the callback handler
+ * @param integer $priority of the hook
+ * @param string $name of the hook to call
+ * @param mixed $data to transmit to the callback handler
*/
public static function fork($priority, $name, $data = null)
{
}
/**
- * check if an app_menu hook exist for addon $name.
+ * Checks if an app_menu hook exist for the provided addon name.
* Return true if the addon is an app
+ *
+ * @param string $name Name of the addon
+ * @return boolean
*/
public static function isAddonApp($name)
{
*/
class DBA
{
+ /**
+ * Lowest possible date value
+ */
const NULL_DATE = '0001-01-01';
+ /**
+ * Lowest possible datetime value
+ */
const NULL_DATETIME = '0001-01-01 00:00:00';
public static $connected = false;