Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
camelCase on widget methods
  • Loading branch information
jakoch committed Dec 1, 2012
1 parent 33893bd commit 4e10760
Show file tree
Hide file tree
Showing 16 changed files with 40 additions and 44 deletions.
4 changes: 1 addition & 3 deletions Clansuite/Modules/Account/Controller/AccountController.php
Expand Up @@ -55,10 +55,8 @@ public function actionShow()
/**
* Login Block
*/
public function widget_login($item)
public function widgetLogin($item)
{
// @todo assign not the whole config, only the parameters need

// Get Render Engine & Assign vars
$this->getView()->assign('config', $this->getClansuiteConfig());
}
Expand Down
2 changes: 1 addition & 1 deletion Clansuite/Modules/Forum/Info.php
Expand Up @@ -19,6 +19,6 @@
uniqueid =
[forum_widgets]
widget_forum
widgetForum
; DO NOT REMOVE THIS LINE */ ?>
1 change: 0 additions & 1 deletion Clansuite/Modules/Guestbook/Config.php
Expand Up @@ -18,5 +18,4 @@
module_section =
module_id =
; DO NOT REMOVE THIS LINE */ ?>
1 change: 0 additions & 1 deletion Clansuite/Modules/Languages/Config.php
Expand Up @@ -17,5 +17,4 @@
module_section =
module_id =
; DO NOT REMOVE THIS LINE */ ?>
6 changes: 3 additions & 3 deletions Clansuite/Modules/Menu/Controller/MenuController.php
Expand Up @@ -45,15 +45,15 @@ public function _initializeModule()
}

/**
* widget_menu
* widgetMenu
*
* Displayes the menu for the frontpage
* {load_module name="news" action="widget_menu"}
* {load_module name="news" action="widgetMenu"}
*
* @param void
* @returns void
*/
public function widget_menu($item)
public function widgetMenu($item)
{

}
Expand Down
Expand Up @@ -194,20 +194,20 @@ public function actionPreview()
/**
* Frontend Header
*/
$frontend = $smarty->fetch( APPLICATION_MODULES_PATH . 'scaffolding/module_frontend.tpl');
$frontend = $smarty->fetch( APPLICATION_MODULES_PATH . 'scaffolding/moduleFrontend.tpl');
$view->assign( 'frontend', geshi_highlight($frontend,'php-brief', '',true ) );

/**
* Frontend Method
*/
$frontend_methods = $smarty->fetch( APPLICATION_MODULES_PATH . 'scaffolding/module_frontend_method.tpl');
$frontend_methods = $smarty->fetch( APPLICATION_MODULES_PATH . 'scaffolding/moduleFrontendMethod.tpl');
$view->assign( 'frontend_methods', $frontend_methods);

/**
* Widget Method (Module integrated)
*/
if ( isset($mod['widget']['checked']) && $mod['widget']['checked'] == 1) {
$widget_methods = $smarty->fetch( APPLICATION_MODULES_PATH . 'scaffolding/module_widget_method.tpl');
$widget_methods = $smarty->fetch( APPLICATION_MODULES_PATH . 'scaffolding/moduleWidgetMethod.tpl');
$view->assign( 'widget_methods', $widget_methods);
}
}
Expand All @@ -220,21 +220,21 @@ public function actionPreview()
/**
* Admin Module Header
*/
$backend = $smarty->fetch( APPLICATION_MODULES_PATH . 'scaffolding/module_backend.tpl');
$backend = $smarty->fetch( APPLICATION_MODULES_PATH . 'scaffolding/moduleBackend.tpl');
$view->assign( 'backend', geshi_highlight( $backend ,'php-brief', '',true ) );

/**
* Admin Module Method
*/
$backend_methods = $smarty->fetch( APPLICATION_MODULES_PATH . 'scaffolding/module_backend_method.tpl');
$backend_methods = $smarty->fetch( APPLICATION_MODULES_PATH . 'scaffolding/moduleBackendMethod.tpl');
$view->assign( 'backend_methods', $backend_methods );
}

/**
* CONFIG - Module Configuration File
*/
if ( isset($mod['config']['checked']) && $mod['config']['checked'] == 1) {
$config = $smarty->fetch( APPLICATION_MODULES_PATH . 'scaffolding/module_config.tpl');
$config = $smarty->fetch( APPLICATION_MODULES_PATH . 'scaffolding/moduleConfig.tpl');
$view->assign( 'config', geshi_highlight($config,'php-brief', '',true ) );
}

Expand Down
14 changes: 7 additions & 7 deletions Clansuite/Modules/News/Controller/NewsController.php
Expand Up @@ -355,7 +355,7 @@ public function action_fullarchive()
}

/**
* widget_latestnews
* widgetLatestNews
*
* Displayes the specified number of news in the latestnews_widget.tpl.
* This is called from template-side by adding:
Expand All @@ -365,7 +365,7 @@ public function action_fullarchive()
* @param $smarty Smarty Render Engine Object
* @returns content of news_widget.tpl
*/
public function widget_latestnews($numberNews)
public function widgetLatestNews($numberNews)
{
/**
* get the incomming value for the number of items to display
Expand All @@ -385,7 +385,7 @@ public function widget_latestnews($numberNews)
/**
* Widget for displaying used NewsCategories in List-Style
*/
public function widget_newscategories_list()
public function widgetNewsCategoriesList()
{
$newscategories_list = $this->getModel()->fetchUsedNewsCategories();

Expand All @@ -395,7 +395,7 @@ public function widget_newscategories_list()
/**
* Widget for displaying used NewsCategories in Dropdown-Style
*/
public function widget_newscategories_dropdown()
public function widgetNewsCategoriesDropdown()
{
$newscategories_dropdown = $this->getModel()->fetchUsedNewsCategories();

Expand All @@ -405,7 +405,7 @@ public function widget_newscategories_dropdown()
/**
* Widget Archive
*/
public function widget_archive()
public function widgetNewsAchive()
{
// fetch all newsentries, ordered by creation date ASCENDING
// get catdropdown options from database
Expand Down Expand Up @@ -434,15 +434,15 @@ public function widget_archive()
/**
* Widget Newsfeeds
*/
public function widget_newsfeeds()
public function widgetNewsFeeds()
{
// nothing to assign, it a pure template widget
}

/**
* Widget Newsfeeds
*/
public function widget_newspublish($params)
public function widgetNewsPublish($params)
{

if ( is_array($params) and !empty($params)) {
Expand Down
2 changes: 1 addition & 1 deletion Clansuite/Modules/News/Info.php
Expand Up @@ -19,6 +19,6 @@
uniqueid =
[news_widgets]
widget_news
widgetNews
; DO NOT REMOVE THIS LINE */ ?>
Expand Up @@ -37,7 +37,7 @@
*/
class RssreaderController extends ModuleController
{
public function widget_rssreader()
public function widgetRssReader()
{
// fetch the google group clansuite for latest news
$feeditems = Clansuite_Feed::fetchRSS('http://groups.google.com/group/clansuite/feed/rss_v2_0_topics.xml');
Expand Down
4 changes: 2 additions & 2 deletions Clansuite/Modules/Search/Controller/SearchController.php
Expand Up @@ -49,7 +49,7 @@ public function actionShow()
$this->display();
}

public function action_multisearch()
public function actionMultiSearch()
{
// Set Pagetitle and Breadcrumbs
\Koch\View\Helper\Breadcrumb::add( _('Show'), '/search/multisearch');
Expand All @@ -73,7 +73,7 @@ public function action_multisearch()
$this->display();
}

public function widget_multisearch()
public function widgetMultiSearch()
{
}

Expand Down
Expand Up @@ -83,7 +83,7 @@ private function fetch_statistic()
return $stats;
}

public function widget_statistics($params)
public function widgetStatistics($params)
{
$this->getView()->assign('stats', self::fetch_statistic());
}
Expand Down
2 changes: 1 addition & 1 deletion Clansuite/Modules/Statistics/Info.php
Expand Up @@ -19,6 +19,6 @@
uniqueid =
[statistics_widgets]
widget_statistics
widgetStatistics
; DO NOT REMOVE THIS LINE */ ?>
Expand Up @@ -77,7 +77,7 @@ public function actionList()
$this->display();
}

public function widget_ts3ministatus($params)
public function widgetTeamspeak3MiniStatus($params)
{
$view = $this->getView();

Expand All @@ -104,7 +104,7 @@ public function widget_ts3ministatus($params)
$view->assign('serverinfo', $serverinfo);
}

public function widget_ts2ministatus($params)
public function widgetTeamspeak2MiniStatus($params)
{
$view = $this->getView();

Expand Down Expand Up @@ -152,7 +152,7 @@ public function widget_ts2ministatus($params)
$view->assign('serverinfo', $serverinfo);
}

public function widget_ts2viewer($params)
public function widgetTeamspeak2Viewer($params)
{
$view = $this->getView();

Expand All @@ -171,7 +171,7 @@ public function widget_ts2viewer($params)
$view->assign('serverinfo', $serverinfo);
}

public function widget_ts3viewer($params)
public function widgetTeamspeak3Viewer($params)
{
$view = $this->getView();

Expand Down
2 changes: 1 addition & 1 deletion Clansuite/Modules/Teamspeakviewer/Info.php
Expand Up @@ -19,6 +19,6 @@
uniqueid =
[teamspeakviewer_widgets]
widget_teamspeakviewer
widgetTeamspeakViewer
; DO NOT REMOVE THIS LINE */ ?>
Expand Up @@ -202,12 +202,12 @@ public static function generateThemeInfoXML()

}

public static function widget_frontend_themechooser()
public static function widgetThemeSelectorFrontend()
{

}

public static function widget_backend_themechooser()
public static function widgetThemeSelectorBackend()
{

}
Expand Down
18 changes: 9 additions & 9 deletions Clansuite/Modules/Users/Controller/UsersController.php
Expand Up @@ -106,17 +106,17 @@ public function actionList()
}

/**
* widget_lastregisteredusers
* widgetLastRegisteredUsers
*
* Displayes the specified number of last registered Users in the lastregisteredusers_widget.tpl.
* This is called from template-side by adding:
* {load_module name="users" action="widget_users" items="3"}
* {load_module name="users" action="widgetLastRegisteredUsers" items="3"}
*
* @param $numberUser Number of Users to fetch
* @param $smarty Smarty Render Engine Object
* @returns content of users_widget.tpl
*/
public function widget_lastregisteredusers($numberUsers)
public function widgetLastRegisteredUsers($numberUsers)
{
// set cfg value,
// or set the the incomming value
Expand All @@ -133,9 +133,9 @@ public function widget_lastregisteredusers($numberUsers)
/**
* widget_useronline
*
* @returns content of widget_usersonline.tpl
* @returns content of widgetUsersOnline.tpl
*/
public function widget_usersonline()
public function widgetUsersOnline()
{
$usersonline = 0;
$guests = 0;
Expand All @@ -148,14 +148,14 @@ public function widget_usersonline()
/**
* widget RandomUser
*
* Displayes a random user widget_randomuser.tpl.
* Displayes a random user widgetRandomUser.tpl.
* This is called from template-side by adding:
* {load_module name="users" action="widget_randomuser"}
* {load_module name="users" action="widgetRandomUser"}
*
* @param $smarty Smarty Render Engine Object
* @returns direct smarty assign of randomuser data
*/
public function widget_randomuser()
public function widgetRandomUser()
{
$view = $this->getView();

Expand All @@ -169,7 +169,7 @@ public function widget_randomuser()
$view->assign('random_user', $random_user['0']);
}

public function widget_usercenter()
public function widgetUserCenter()
{
$view = $this->getView();

Expand Down

0 comments on commit 4e10760

Please sign in to comment.