Public feed #888331

Mine

public text v1 · immutable
Raw Edit
·published 2008-02-02 00:43 UTC
rendered paste body
<?php

		class CrmProjectMgmt extends Module
		{
			function CrmProjectMgmt()
			{
				$this->navElements= array("List"=>"List", "Add"=>"Add");
			}

			function preExecute()
			{
				ModelBroker::loadModel("CrmProject");
			}
			
			function makeForm()
			{

				$form = new Form();
		$form->addTextBox("title");
				$form->addTextBox("domain");
				$form->addTextBox("accountId");
				
		$form->addHidden("id");
		return $form;
			}

			function executeList()
			{
				$this->listHelper("CrmProject", array('title'=>1,'domain'=>1));
			}

			function executeEdit()
			{
				$this->editHelper("CrmProject");
			}

			function executeDelete()
			{
				$this->deleteHelper("CrmProject");
			}

			function executeAdd()
			{
				$this->addHelper("CrmProject");
			}

			function editAid($dataObject)
			{

			}

			function addAid($dataObject)
			{
			}

			function deleteAid($dataObject)
			{
			}



		}

?>