1 <?php
defined('SYSPATH') OR die('No direct access allowed.');
4 * Handle manifest files from modules
6 class Module_Manifest_Model
{
7 private static $manifests = array();
10 * Load manifest files from modules manifest directories
12 private static function load_manifest( $name ) {
14 if(!preg_match('/^[a-z_]+$/',$name)) {
17 $files = glob(MODPATH
. '*/manifest/'.$name.'.php' );
18 foreach( $files as $file ) {
25 * Load manifest parameters from modules
27 public static function get( $name ) {
28 if( !isset( self
::$manifests[$name] ) ) {
29 self
::$manifests[$name] = self
::load_manifest( $name );
31 return self
::$manifests[$name];