Author: david
Date: 2008-09-09 17:21:46 -0700 (Tue, 09 Sep 2008)
New Revision: 1360
Modified:
trunk/apps/qubit/modules/repository/actions/listAction.class.php
Log:
Fix indenting and add docblock comments.
Modified: trunk/apps/qubit/modules/repository/actions/listAction.class.php
===================================================================
--- trunk/apps/qubit/modules/repository/actions/listAction.class.php
2008-09-09 21:54:00 UTC (rev 1359)
+++ trunk/apps/qubit/modules/repository/actions/listAction.class.php
2008-09-10 00:21:46 UTC (rev 1360)
@@ -19,41 +19,53 @@
* Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+/**
+ * @package qubit
+ * @subpackage repository
+ * @author Peter Van Garderen <[EMAIL PROTECTED]>
+ * @version svn:$Id$
+ */
class RepositoryListAction extends sfAction
{
+
+ /**
+ * Show hitlist of repositories
+ *
+ * @param sfRequest $request
+ */
public function execute($request)
{
- if ($this->getRequestParameter('country'))
- {
+ if ($this->getRequestParameter('country'))
+ {
$this->country = $this->getRequestParameter('country');
- }
+ }
else
- {
+ {
//set default country to all
$this->country = 0;
- }
+ }
if ($this->getRequestParameter('sort'))
- {
+ {
$this->sort = $this->getRequestParameter('sort');
- }
+ }
else
- {
+ {
//default sort column for list view
$this->sort = 'nameUp';
- }
+ }
$criteria = new Criteria;
$this->repositories = QubitRepository::getRepositories($this->sort,
$this->countryId);
- //determine if user has edit priviliges
+ //determine if user has edit priviliges
$this->editCredentials = false;
if (SecurityPriviliges::editCredentials($this->getUser(), 'repository'))
- {
+ {
$this->editCredentials = true;
- }
+ }
- //set view template
+ //set view template
switch ($this->getRequestParameter('template'))
{
case 'isiah' :
@@ -62,5 +74,5 @@
default :
$this->setTemplate(sfConfig::get('app_default_template_repository_list'));
}
- }
+ }
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.ca/group/qubit-commits?hl=en
-~----------~----~----~----~------~----~------~--~---