00001 <?php 00002 00016 import('form.Form'); 00017 00018 class StaticPagesSettingsForm extends Form { 00020 var $conferenceId; 00021 00023 var $plugin; 00024 00026 var $errors; 00027 00032 function StaticPagesSettingsForm(&$plugin, $conferenceId) { 00033 00034 parent::Form($plugin->getTemplatePath() . 'settingsForm.tpl'); 00035 00036 $this->conferenceId = $conferenceId; 00037 $this->plugin =& $plugin; 00038 00039 $this->addCheck(new FormValidatorPost($this)); 00040 } 00041 00042 00046 function initData() { 00047 $conferenceId = $this->conferenceId; 00048 $plugin =& $this->plugin; 00049 00050 $staticPagesDAO =& DAORegistry::getDAO('StaticPagesDAO'); 00051 00052 $rangeInfo =& Handler::getRangeInfo('staticPages'); 00053 $staticPages = $staticPagesDAO->getStaticPagesByConferenceId($conferenceId); 00054 $this->setData('staticPages', $staticPages); 00055 } 00056 00060 function readInputData() { 00061 $this->readUserVars(array('pages')); 00062 } 00063 00067 function execute() { 00068 $plugin =& $this->plugin; 00069 $conferenceId = $this->conferenceId; 00070 } 00071 00072 } 00073 ?>