PHP Classes

File: app/Jack.php

Recommend this page to a friend!
  Packages of Brett Dutton   JackBooted PHP Framework   app/Jack.php   Download  
File: app/Jack.php
Role: Class source
Content type: text/plain
Description: Class source
Class: JackBooted PHP Framework
Web application framework using simplified MVC
Author: By
Last change:
Date: 10 years ago
Size: 723 bytes
 

 

Contents

Class file image Download
<?php
namespace App;
use \Jackbooted\Config\Cfg;
use \Jackbooted\Forms\CRUD;

class Jack extends \Jackbooted\Util\Module {

    public static function crud ( CRUD &$crud ) {
        switch ( $crud->getTableName() ) {
            case 'tblModJackAlert':
                $crud->setColDisplay ( 'fldType',   [ CRUD::SELECT,  \App\Models\Alerts::$typeList  ] );
                $crud->setColDisplay ( 'fldStatus', [ CRUD::SELECT,  \App\Models\Alerts::$statusList  ] );
                break;
        }
    }

    public static function getBackground ( ) {
        return Cfg::get ( 'images_url' ) . '/spacer.gif';
    }

    public static function logo ( ) {
        return Cfg::get ( 'images_url' ) . '/JackLogo.gif';
    }
}