Code Search for Developers
 
 
  

module_class.php from ECP (EliteCore Project) at Krugle


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

ECP (EliteCore Project)

EliteCore Project is a PHP5.1/Javascript/AJAX/XHTML/CSS framework for creating WEB 2.0 applications and services.The basic open-source instalation can be also used as an interactive personal page or BLOG.This project uses the latest features available.

Project homepage: http://sourceforge.net/projects/elitecore
Programming language(s): JavaScript,PHP,XML
License: cpl

  encryption.php
  form.php
  module_class.php
  session_interface.php