public function execute($filterChain)
 {
     if (sfConfig::get('sf_login_module') == $this->context->getModuleName() || sfConfig::get('sf_secure_module') == $this->context->getModuleName() && sfConfig::get('sf_secure_action') == $this->context->getActionName()) {
         return $filterChain->execute();
     }
     $module_name = $this->context->getModuleName();
     if (!pmConfiguration::getInstance()->isEnabled($module_name)) {
         $this->context->getController()->getActionStack()->getLastEntry()->getActionInstance()->forward404();
     }
     return $filterChain->execute();
 }
예제 #2
0
    <?php 
echo link_to(__('Mis Materias'), '@course_subject_student', array('class' => 'button'));
?>

    <?php 
if (pmConfiguration::getInstance()->isEnabled('absence_per_day') && pmConfiguration::getInstance()->isEnabled('absence_per_subject')) {
    ?>
      <?php 
    echo link_to(__('Mis Inasistencias'), '@absences', array('class' => 'button'));
    ?>
    <?php 
}
?>

    <?php 
if (pmConfiguration::getInstance()->isEnabled('disciplinarysanction')) {
    ?>
      <?php 
    echo link_to(__('Mis Sanciones disciplinarias'), '@disciplinary_sanction', array('class' => 'button'));
    ?>
    <?php 
}
?>

    <?php 
echo link_to(__('Mis Datos Personales'), '@user_information', array('class' => 'button'));
?>

    <div class="clear"></div>
  </div>
예제 #3
0
 public function repeaterStudentIsEnabled()
 {
     return pmConfiguration::getInstance()->isEnabled('repeater_student');
 }
예제 #4
0
 public function executeEdit(sfWebRequest $request)
 {
     $this->pm_configuration = pmConfiguration::getInstance();
     $this->form = $this->configuration->getForm($this->pm_configuration);
 }