Author: david
Date: 2008-09-30 12:24:06 -0700 (Tue, 30 Sep 2008)
New Revision: 1413
Modified:
trunk/apps/qubit/modules/repository/actions/editAction.class.php
Log:
Fix indenting. Add docblock header.
Modified: trunk/apps/qubit/modules/repository/actions/editAction.class.php
===================================================================
--- trunk/apps/qubit/modules/repository/actions/editAction.class.php
2008-09-30 19:18:08 UTC (rev 1412)
+++ trunk/apps/qubit/modules/repository/actions/editAction.class.php
2008-09-30 19:24:06 UTC (rev 1413)
@@ -19,42 +19,52 @@
* Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+/**
+ * Controller for editing repository information.
+ *
+ * @package qubit
+ * @subpackage repository
+ * @version svn: $Id$
+ * @author Peter Van Garderen <[EMAIL PROTECTED]>
+ * @author Jack Bates <[EMAIL PROTECTED]>
+ * @author David Juhasz <[EMAIL PROTECTED]>
+ */
class RepositoryEditAction extends sfAction
{
public function execute($request)
{
- $this->repository =
QubitRepository::getById($this->getRequestParameter('id'));
+ $this->repository =
QubitRepository::getById($this->getRequestParameter('id'));
- $this->forward404Unless($this->repository);
+ $this->forward404Unless($this->repository);
- $this->contactInformation = $this->repository->getContactInformation();
- $this->newContactInformation = new QubitContactInformation;
+ $this->contactInformation = $this->repository->getContactInformation();
+ $this->newContactInformation = new QubitContactInformation;
- //Other Forms of Name
- $this->otherNames = $this->repository->getOtherNames();
- $otherNameTypes = array();
- foreach (QubitTerm::getActorNameTypes() as $type)
+ //Other Forms of Name
+ $this->otherNames = $this->repository->getOtherNames();
+ $otherNameTypes = array();
+ foreach (QubitTerm::getActorNameTypes() as $type)
{
$otherNameTypes[$type->getId()] = $type->getName();
}
- $this->otherNameTypes = $otherNameTypes;
+ $this->otherNameTypes = $otherNameTypes;
- //Properties
- $this->languageCodes = $this->repository->getProperties($name =
'language_of_repository_description');
- $this->scriptCodes = $this->repository->getProperties($name =
'script_of_repository_description');
+ //Properties
+ $this->languageCodes = $this->repository->getProperties($name =
'language_of_repository_description');
+ $this->scriptCodes = $this->repository->getProperties($name =
'script_of_repository_description');
- //Notes
- $this->notes = $this->repository->getRepositoryNotes();
- $this->newNote = new QubitNote;
+ //Notes
+ $this->notes = $this->repository->getRepositoryNotes();
+ $this->newNote = new QubitNote;
- //set view template
- switch ($this->getRequestParameter('template'))
+ //set view template
+ switch ($this->getRequestParameter('template'))
{
- case 'isiah' :
- $this->setTemplate('editISIAH');
- break;
- default :
-
$this->setTemplate(sfConfig::get('app_default_template_repository_edit'));
+ case 'isiah' :
+ $this->setTemplate('editISIAH');
+ break;
+ default :
+
$this->setTemplate(sfConfig::get('app_default_template_repository_edit'));
}
}
}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---