~tariq-daouda/shoof-cms/Very-experimental

« back to all changes in this revision

Viewing changes to modules/KtbDarija/KtbMotarjim.php

  • Committer: tariq
  • Date: 2010-07-25 19:20:06 UTC
  • Revision ID: tariq@sauropode-20100725192006-nwzl83xc58gwbqx2
Refactured module/submodule system :
Class module and class submodule

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
 
 
3
/**
 
4
This is an exemple of submodule, it contains everything (and only that) that a submodule must have.
 
5
To create a new submodule copy past this and start from it.
 
6
*/
 
7
 class KtbMotarjim extends Shoof_Submodule
 
8
 {
 
9
        private static $instance = false;
 
10
        
 
11
        protected function __construct()
 
12
        {
 
13
          parent::__construct();
 
14
          //$this->name = 'Dummy submodule';
 
15
          $this->description = 'This is a dummy submodule, just to show you the skeleton all submodules share';
 
16
        }
 
17
        
 
18
        public static function getInstance()
 
19
        {
 
20
           if(!self::$instance)
 
21
             self::$instance = new self();
 
22
           
 
23
           return self::$instance;
 
24
        }
 
25
 }
 
26
 
 
27
?>