Abstract lnApp classes
This commit is contained in:
parent
0a211b4677
commit
8100fa2540
@ -13,7 +13,7 @@
|
|||||||
* @license http://dev.leenooks.net/license.html
|
* @license http://dev.leenooks.net/license.html
|
||||||
* @uses Style
|
* @uses Style
|
||||||
*/
|
*/
|
||||||
class lnApp_Block extends HTMLRender {
|
abstract class lnApp_Block extends HTMLRender {
|
||||||
protected static $_data = array();
|
protected static $_data = array();
|
||||||
protected static $_spacer = '<table><tr class="spacer"><td> </td></tr></table>';
|
protected static $_spacer = '<table><tr class="spacer"><td> </td></tr></table>';
|
||||||
protected static $_required_keys = array('body');
|
protected static $_required_keys = array('body');
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
* @copyright (c) 2010 Deon George
|
* @copyright (c) 2010 Deon George
|
||||||
* @license http://dev.leenooks.net/license.html
|
* @license http://dev.leenooks.net/license.html
|
||||||
*/
|
*/
|
||||||
class lnApp_Breadcrumb extends HTMLRender {
|
abstract class lnApp_Breadcrumb extends HTMLRender {
|
||||||
protected static $_data = array();
|
protected static $_data = array();
|
||||||
protected static $_spacer = ' » ';
|
protected static $_spacer = ' » ';
|
||||||
protected static $_required_keys = array('body');
|
protected static $_required_keys = array('body');
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
* @copyright (c) 2010 Deon George
|
* @copyright (c) 2010 Deon George
|
||||||
* @license http://dev.leenooks.net/license.html
|
* @license http://dev.leenooks.net/license.html
|
||||||
*/
|
*/
|
||||||
class lnApp_HeadImages extends HTMLRender {
|
abstract class lnApp_HeadImages extends HTMLRender {
|
||||||
protected static $_data = array();
|
protected static $_data = array();
|
||||||
protected static $_spacer = ' ';
|
protected static $_spacer = ' ';
|
||||||
protected static $_required_keys = array('img');
|
protected static $_required_keys = array('img');
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
* @copyright (c) 2010 Deon George
|
* @copyright (c) 2010 Deon George
|
||||||
* @license http://dev.leenooks.net/license.html
|
* @license http://dev.leenooks.net/license.html
|
||||||
*/
|
*/
|
||||||
class lnApp_HTML extends Kohana_HTML {
|
abstract class lnApp_HTML extends Kohana_HTML {
|
||||||
public static function nbsp($string) {
|
public static function nbsp($string) {
|
||||||
if (strlen((string)$string))
|
if (strlen((string)$string))
|
||||||
return $string;
|
return $string;
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
* @copyright (c) 2010 Deon George
|
* @copyright (c) 2010 Deon George
|
||||||
* @license http://dev.leenooks.net/license.html
|
* @license http://dev.leenooks.net/license.html
|
||||||
*/
|
*/
|
||||||
class lnApp_Meta {
|
abstract class lnApp_Meta {
|
||||||
private $_data = array();
|
private $_data = array();
|
||||||
private $_array_keys = array();
|
private $_array_keys = array();
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* @copyright (c) 2010 Deon George
|
* @copyright (c) 2010 Deon George
|
||||||
* @license http://dev.leenooks.net/license.html
|
* @license http://dev.leenooks.net/license.html
|
||||||
*/
|
*/
|
||||||
class lnApp_Random {
|
abstract class lnApp_Random {
|
||||||
public static function char($num=NULL) {
|
public static function char($num=NULL) {
|
||||||
return substr(md5(rand()),0,is_null($num) ? rand(6,10) : $num-1);
|
return substr(md5(rand()),0,is_null($num) ? rand(6,10) : $num-1);
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
* @copyright (c) 2010 Deon George
|
* @copyright (c) 2010 Deon George
|
||||||
* @license http://dev.leenooks.net/license.html
|
* @license http://dev.leenooks.net/license.html
|
||||||
*/
|
*/
|
||||||
class lnApp_Script extends HTMLRender {
|
abstract class lnApp_Script extends HTMLRender {
|
||||||
protected static $_data = array();
|
protected static $_data = array();
|
||||||
protected static $_spacer = "\n";
|
protected static $_spacer = "\n";
|
||||||
protected static $_required_keys = array('type','data');
|
protected static $_required_keys = array('type','data');
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
* @license http://dev.leenooks.net/license.html
|
* @license http://dev.leenooks.net/license.html
|
||||||
* @uses Style
|
* @uses Style
|
||||||
*/
|
*/
|
||||||
class lnApp_Sort {
|
abstract class lnApp_Sort {
|
||||||
/**
|
/**
|
||||||
* Sort a multi dimensional array.
|
* Sort a multi dimensional array.
|
||||||
*
|
*
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
* @copyright (c) 2010 Deon George
|
* @copyright (c) 2010 Deon George
|
||||||
* @license http://dev.leenooks.net/license.html
|
* @license http://dev.leenooks.net/license.html
|
||||||
*/
|
*/
|
||||||
class lnApp_Style extends HTMLRender {
|
abstract class lnApp_Style extends HTMLRender {
|
||||||
protected static $_data = array();
|
protected static $_data = array();
|
||||||
protected static $_spacer = "\n";
|
protected static $_spacer = "\n";
|
||||||
protected static $_required_keys = array('type','data');
|
protected static $_required_keys = array('type','data');
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
* @copyright (c) 2010 Deon George
|
* @copyright (c) 2010 Deon George
|
||||||
* @license http://dev.leenooks.net/license.html
|
* @license http://dev.leenooks.net/license.html
|
||||||
*/
|
*/
|
||||||
class lnApp_SystemMessage extends HTMLRender {
|
abstract class lnApp_SystemMessage extends HTMLRender {
|
||||||
protected static $_data = array();
|
protected static $_data = array();
|
||||||
protected static $_spacer = '<table><tr class="spacer"><td> </td></tr></table>';
|
protected static $_spacer = '<table><tr class="spacer"><td> </td></tr></table>';
|
||||||
protected static $_required_keys = array('title','body','type');
|
protected static $_required_keys = array('title','body','type');
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
* @license http://dev.leenooks.net/license.html
|
* @license http://dev.leenooks.net/license.html
|
||||||
* @uses Style
|
* @uses Style
|
||||||
*/
|
*/
|
||||||
class lnApp_Table {
|
abstract class lnApp_Table {
|
||||||
public static function resolve($d,$key) {
|
public static function resolve($d,$key) {
|
||||||
if (is_array($d) AND isset($d[$key]))
|
if (is_array($d) AND isset($d[$key]))
|
||||||
$x = $d[$key];
|
$x = $d[$key];
|
||||||
|
Reference in New Issue
Block a user