Minor internal fixes

This commit is contained in:
Deon George 2014-10-22 11:18:56 +11:00
parent f7567dc250
commit db7f5f8d55
6 changed files with 9 additions and 5 deletions

View File

@ -12,7 +12,7 @@
* @license http://dev.leenooks.net/license.html
* @uses Style
*/
class lnApp_Block_Sub extends HTMLRender {
abstract class lnApp_Block_Sub extends HTMLRender {
protected static $_data = array();
protected static $_spacer = '<table><tr class="spacer"><td>&nbsp;</td></tr></table>';
protected static $_c = 0;

View File

@ -10,7 +10,7 @@
* @license http://dev.leenooks.net/license.html
* @also [logout]
*/
class lnApp_Controller_Login extends Controller_TemplateDefault {
abstract class lnApp_Controller_Login extends Controller_TemplateDefault {
protected $auth_required = FALSE;
/**

View File

@ -10,7 +10,7 @@
* @license http://dev.leenooks.net/license.html
* @also [login]
*/
class lnApp_Controller_Logout extends Controller {
abstract class lnApp_Controller_Logout extends Controller {
public function action_index() {
// If user already signed-in
if (Auth::instance()->logged_in()) {

View File

@ -6,4 +6,4 @@
* @copyright (c) 2014 Deon George
* @license http://dev.leenooks.net/license
*/
class lnApp_Email_Exception extends Kohana_Exception {}
abstract class lnApp_Email_Exception extends Kohana_Exception {}

View File

@ -9,7 +9,7 @@
* @copyright (c) 2009-2013 Deon George
* @license http://dev.leenooks.net/license.html
*/
class lnApp_Menu {
abstract class lnApp_Menu {
public static function items($type,array $list=array()) {
$result = array();

View File

@ -333,6 +333,10 @@ abstract class lnApp_ORM extends Kohana_ORM {
return $this->_sub_items;
}
public function subitem_add(Model $item) {
array_push($this->_sub_items,$item);
}
/**
* Override the Kohana processing so we can null values if required.
* We override this function, because we do set our own primary key value