Skip to content

Commit

Permalink
fix file encoding + indenting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
nitriques committed Oct 16, 2014
1 parent a7be5cc commit 5902a4c
Showing 1 changed file with 71 additions and 72 deletions.
143 changes: 71 additions & 72 deletions extension.driver.php
@@ -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;
}

}

0 comments on commit 5902a4c

Please sign in to comment.