Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix file encoding + indenting issues
- Loading branch information
Showing
1 changed file
with
71 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,72 +1,71 @@ | ||
<?php | ||
/* | ||
Copyight: Deux Huit Huit 2013 | ||
License: MIT, http://deuxhuithuit.mit-license.org | ||
*/ | ||
|
||
if(!defined("__IN_SYMPHONY__")) die("<h2>Error</h2><p>You cannot directly access this file</p>"); | ||
|
||
/** | ||
* | ||
* @author Deux Huit Huit | ||
* http://www.deuxhuithuit.com | ||
* | ||
*/ | ||
class extension_cache_management extends Extension { | ||
|
||
/** | ||
* Name of the extension | ||
* @var string | ||
*/ | ||
const EXT_NAME = 'Cache Management'; | ||
|
||
/*********** DELEGATES ***********************/ | ||
/** | ||
* Delegate fired to add a link to Cache Management | ||
*/ | ||
public function fetchNavigation() { | ||
|
||
if (is_callable(array('Symphony', 'Author'))) { | ||
$author = Symphony::Author(); | ||
} else { | ||
$author = Administration::instance()->Author; | ||
} | ||
|
||
$group = $author->isDeveloper() ? 'developer' : 'manager'; | ||
|
||
return array( | ||
array ( | ||
'location' => __('System'), | ||
'name' => __(self::EXT_NAME), | ||
'link' => 'cache_management', | ||
'limit' => $group, | ||
) // nav group | ||
); // nav | ||
} | ||
|
||
|
||
/* ********* INSTALL/UPDATE/UNISTALL ******* */ | ||
|
||
/** | ||
* Creates the table needed for the settings of the field | ||
*/ | ||
public function install() { | ||
return true; | ||
} | ||
|
||
/** | ||
* Creates the table needed for the settings of the field | ||
*/ | ||
public function update($previousVersion) { | ||
return true; | ||
} | ||
|
||
/** | ||
* | ||
* Drops the table needed for the settings of the field | ||
*/ | ||
public function uninstall() { | ||
return true; | ||
} | ||
|
||
} | ||
<?php | ||
/* | ||
Copyight: Deux Huit Huit 2013-2014 | ||
License: MIT, http://deuxhuithuit.mit-license.org | ||
*/ | ||
|
||
if(!defined("__IN_SYMPHONY__")) die("<h2>Error</h2><p>You cannot directly access this file</p>"); | ||
|
||
/** | ||
* | ||
* @author Deux Huit Huit | ||
* http://www.deuxhuithuit.com | ||
* | ||
*/ | ||
class extension_cache_management extends Extension { | ||
|
||
/** | ||
* Name of the extension | ||
* @var string | ||
*/ | ||
const EXT_NAME = 'Cache Management'; | ||
|
||
/*********** DELEGATES ***********************/ | ||
/** | ||
* Delegate fired to add a link to Cache Management | ||
*/ | ||
public function fetchNavigation() { | ||
if (is_callable(array('Symphony', 'Author'))) { | ||
$author = Symphony::Author(); | ||
} else { | ||
$author = Administration::instance()->Author; | ||
} | ||
|
||
$group = $author->isDeveloper() ? 'developer' : 'manager'; | ||
|
||
return array( | ||
array ( | ||
'location' => __('System'), | ||
'name' => __(self::EXT_NAME), | ||
'link' => 'cache_management', | ||
'limit' => $group, | ||
) // nav group | ||
); // nav | ||
} | ||
|
||
|
||
/* ********* INSTALL/UPDATE/UNISTALL ******* */ | ||
|
||
/** | ||
* Creates the table needed for the settings of the field | ||
*/ | ||
public function install() { | ||
return true; | ||
} | ||
|
||
/** | ||
* Creates the table needed for the settings of the field | ||
*/ | ||
public function update($previousVersion) { | ||
return true; | ||
} | ||
|
||
/** | ||
* | ||
* Drops the table needed for the settings of the field | ||
*/ | ||
public function uninstall() { | ||
return true; | ||
} | ||
|
||
} |