Skip to content

Commit

Permalink
Adds a phpdoc define to assist the ide in locating includes/requires
Browse files Browse the repository at this point in the history
  • Loading branch information
dleffler committed Jul 26, 2011
1 parent 1a8c22a commit b1657d1
Show file tree
Hide file tree
Showing 192 changed files with 222 additions and 14 deletions.
2 changes: 2 additions & 0 deletions cron/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@

//define('BASE',str_ireplace('/cron','',__realpath(dirname(__FILE__))));
define("EXP_PATH", BASE);
/** @define "EXP_PATH" ".." */

//Pull in the mysqli helper class form exponet.
// Sure, we could have used mysqli directly but we have this nice friendly class so why not use it
require_once(EXP_PATH . "subsystems/database/mysqli.php");
Expand Down
1 change: 1 addition & 0 deletions datatypes/calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################
/** @define "BASE" ".." */

class calendar {
function form($object) {
Expand Down
1 change: 1 addition & 0 deletions datatypes/calendarmodule_config.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################
/** @define "BASE" ".." */

class calendarmodule_config {
function form($object) {
Expand Down
1 change: 1 addition & 0 deletions datatypes/database_importer.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################
/** @define "BASE" ".." */

class database_importer {
function form() {
Expand Down
1 change: 1 addition & 0 deletions datatypes/file.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################
/** @define "BASE" ".." */

class file {
function update($name,$dest,$object,$destname = null,$force=false) {
Expand Down
1 change: 1 addition & 0 deletions datatypes/file_collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################
/** @define "BASE" ".." */

class file_collection {
function form($object) {
Expand Down
1 change: 1 addition & 0 deletions datatypes/formbuilder_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################
/** @define "BASE" ".." */

class formbuilder_form {
function form($object) {
Expand Down
1 change: 1 addition & 0 deletions datatypes/formbuilder_report.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################
/** @define "BASE" ".." */

class formbuilder_report {
function form($object) {
Expand Down
1 change: 1 addition & 0 deletions datatypes/poll_answer.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#
# $Id: poll_answer.php,v 1.2 2005/04/25 19:02:17 filetreefrog Exp $
##################################################
/** @define "BASE" ".." */

class poll_answer {
function form($object) {
Expand Down
1 change: 1 addition & 0 deletions datatypes/poll_question.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#
# $Id: poll_question.php,v 1.3 2005/04/25 19:02:17 filetreefrog Exp $
##################################################
/** @define "BASE" ".." */

class poll_question {
function form($object) {
Expand Down
2 changes: 2 additions & 0 deletions datatypes/rssfeed.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ function (refreshRSS()) in a datatype ($datetype)
if (!defined('MAGPIE_OUTPUT_ENCODING')) {
define('MAGPIE_OUTPUT_ENCODING', 'UTF-8');
}

/** @define "MAGPIE_DIR" "../external/magpierss/" */
require_once(MAGPIE_DIR.'rss_fetch.inc');
require_once(MAGPIE_DIR.'rss_utils.inc');
define('MAGPIE_CACHE_DIR', BASE.'tmp/rsscache');
Expand Down
1 change: 1 addition & 0 deletions datatypes/section.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################
/** @define "BASE" ".." */

class section {
/*
Expand Down
1 change: 1 addition & 0 deletions datatypes/section_template.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################
/** @define "BASE" ".." */

class section_template {
function form($object = null) {
Expand Down
1 change: 1 addition & 0 deletions datatypes/simplepollmodule_config.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#
# $Id: simplepollmodule_config.php,v 1.2 2005/04/25 19:02:17 filetreefrog Exp $
##################################################
/** @define "BASE" ".." */

class simplepollmodule_config {
function form($object) {
Expand Down
1 change: 1 addition & 0 deletions exponent.js.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################
/** @define "BASE" "." */

//Initialize exponent Framework
//include_once('exponent_common.php'); // incorporated into exponent_bootstrap.php
Expand Down
1 change: 1 addition & 0 deletions exponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################
/** @define "BASE" "." */

/**
* The file that initializes everything
Expand Down
3 changes: 2 additions & 1 deletion exponent_bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################
/** @define "BASE" "." */

// Following code taken from http://us4.php.net/manual/en/function.get-magic-quotes-gpc.php
// - it allows magic_quotes to be on without screwing stuff up.
Expand Down Expand Up @@ -71,7 +72,7 @@ function __realpath($path) {
define('EXPONENT', '1');

// load the constants from the global config, theme config, and then default config settings
require_once(BASE . '/subsystems/config/load.php');
require_once(BASE . 'subsystems/config/load.php');

// define remaining constants throughout the system based on loaded configuration constants

Expand Down
1 change: 1 addition & 0 deletions framework/core/datatypes/expFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* @author Adam Kessler <adam@oicgroup.net>
* @version 2.0.0
*/
/** @define "BASE" "../../.." */

/**
* Class to handle files at the File System Level and updating
Expand Down
3 changes: 2 additions & 1 deletion framework/core/datatypes/expRss.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
* @subpackage Core-Datatypes
* @package Framework
*/

/** @define "BASE" "../../../" */

class expRss extends expRecord {
public $table = 'expRss';
protected $attachable_item_types = array(
Expand Down
3 changes: 3 additions & 0 deletions framework/core/subsystems/expJavascript.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
* @author Adam Kessler <adam@oicgroup.net>
* @version 2.0.0
*/
/** @define "BASE" "../../.." */


/**
* This is the class expJavascript
*
Expand Down
3 changes: 3 additions & 0 deletions framework/core/subsystems/expLang.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
* @author Phillip Ball <phillip@oicgroup.net>
* @version 2.0.0
*/
/** @define "BASE" "../../.." */


/**
* This is the class expLang
*
Expand Down
2 changes: 2 additions & 0 deletions framework/core/subsystems/expValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
* @author Adam Kessler <adam@oicgroup.net>
* @version 2.0.0
*/
/** @define "BASE" "../../.." */

/**
* This is the class expValidator
*
Expand Down
1 change: 1 addition & 0 deletions framework/datatypes/keywords.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################
/** @define "BASE" "../.." */

class keywords {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################
/** @define "BASE" "../../../.." */

class administrationController extends expController {
public $basemodel_name = 'expRecord';
Expand Down
1 change: 1 addition & 0 deletions framework/modules/ecommerce/billingcalculators/cash.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
/** @define "BASE" "../../../.." */

class cash extends billingcalculator{
function name() { return "Cash/Check"; }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
/** @define "BASE" "../../../.." */

class passthru extends billingcalculator {
function name() { return "Passthru Payment"; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################
/** @define "BASE" "../../../.." */

class ecomconfigController extends expController {
//public $basemodel_name = 'expRecord';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################
/** @define "BASE" "../../../.." */

class storeController extends expController {
public $basemodel_name = 'product';
Expand Down
1 change: 1 addition & 0 deletions framework/modules/ecommerce/products/datatypes/product.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################
/** @define "BASE" "../../../../.." */

class product extends expRecord {
public $table = 'product';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################
/** @define "BASE" "../../../.." */

class fedexcalculator extends shippingcalculator {
/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################
/** @define "BASE" "../../../.." */

class upscalculator extends shippingcalculator {
/*
Expand Down
1 change: 1 addition & 0 deletions framework/modules/motd/controllers/motdController.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################
/** @define "BASE" "../../../.." */

class motdController extends expController {
//public $basemodel_name = '';
Expand Down
1 change: 1 addition & 0 deletions framework/modules/users/controllers/usersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################
/** @define "BASE" "../../../.." */

class usersController extends expController {
public $basemodel_name = 'user';
Expand Down
1 change: 1 addition & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################
/** @define "BASE" "." */

define('SCRIPT_EXP_RELATIVE','');
define('SCRIPT_FILENAME','index.php');
Expand Down
1 change: 1 addition & 0 deletions login.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################
/** @define "BASE" "." */

// Initialize the Exponent Framework
require_once('exponent.php');
Expand Down
1 change: 1 addition & 0 deletions modules/administrationmodule/actions/config_activate.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################
/** @define "BASE" "../../.." */

// Part of the Configuration category

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################
/** @define "BASE" "../../.." */

// Part of the Configuration category

Expand Down
1 change: 1 addition & 0 deletions modules/administrationmodule/actions/config_delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################
/** @define "BASE" "../../.." */

// Part of the Configuration category
if (!defined('EXPONENT')) exit('');
Expand Down
1 change: 1 addition & 0 deletions modules/administrationmodule/actions/config_save.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################
/** @define "BASE" "../../.." */

// Part of the Configuration category

Expand Down
1 change: 1 addition & 0 deletions modules/administrationmodule/actions/configuresite.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################
/** @define "BASE" "../../.." */

// Part of the Configuration category

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################
/** @define "BASE" "../../.." */

// Part of the Extensions category

Expand Down
1 change: 1 addition & 0 deletions modules/administrationmodule/actions/gmgr_delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################
/** @define "BASE" "../../.." */

// Part of the User Management category

Expand Down
1 change: 1 addition & 0 deletions modules/administrationmodule/actions/gmgr_editprofile.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################
/** @define "BASE" "../../.." */

// Part of the User Management category

Expand Down
1 change: 1 addition & 0 deletions modules/administrationmodule/actions/gmgr_membership.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################
/** @define "BASE" "../../.." */

// Part of the User Management category

Expand Down
1 change: 1 addition & 0 deletions modules/administrationmodule/actions/gmgr_savegroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################
/** @define "BASE" "../../.." */

// Part of the User Management category

Expand Down
1 change: 1 addition & 0 deletions modules/administrationmodule/actions/groupaccounts.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################
/** @define "BASE" "../../.." */

// Part of the User Management categry

Expand Down
1 change: 1 addition & 0 deletions modules/administrationmodule/actions/install_extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################
/** @define "BASE" "../../.." */

// Part of the Extensions category

Expand Down
1 change: 1 addition & 0 deletions modules/administrationmodule/actions/installtables.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################
/** @define "BASE" "../../.." */

if (!defined('EXPONENT')) exit('');

Expand Down
Loading

0 comments on commit b1657d1

Please sign in to comment.