Show module_class.php syntax highlighted
<?php
class module_class_resource {
public $name;
public $href;
public $search_data;
public $image_src;
public $info;
}
abstract class module_class {
const MODE_NORMAL = 1;
const MODE_SEARCH = 2;
protected $_resources;
protected $_current;
public function __construct($currentModule = false) {
$this->_current = $currentModule;
}
protected function _createResource($resource) {
$this->_resources[(string) $resource] = array ();
}
protected function _addResource($resource, $name, $href, $image_src = false,$search_data = false,$info = false) {
$object = new module_class_resource;
$object->name = $name;
$object->href = $href;
$object->image_src = $image_src;
$object->info = $info;
if (is_array($search_data) === false && $search_data !== false)
exit ("search_data must be an array! in ".$name);
$object->search_data = $search_data;
$this->_resources[(string) $resource][] = $object;
}
protected function _returnResources() {
return $this->_resources;
}
public function _getResources($mode = MODE_NORMAL) {
return false;
}
public function _getSEO($source,$name) {
return false;
}
}
?>
See more files for this project here