コード例 #1
0
ファイル: actions.class.php プロジェクト: vik0803/helpdesk
 public function executeCreate(sfWebRequest $request)
 {
     $form = new sfGuardGroupForm();
     $form->getWidgetSchema()->offsetSet('users_list', new sfWidgetFormInputHidden());
     $this->form = $form;
     $this->processForm($request, $this->form, array('success', 'Отлично!', 'Одной компанией больше.'), '@companies');
     $this->setTemplate('new');
 }
コード例 #2
0
 /**
  * DOCUMENT ME
  */
 public function configure()
 {
     parent::configure();
     // Not scalable
     unset($this['users_list']);
     $this->widgetSchema->getFormFormatter()->setTranslationCatalogue('apostrophe');
     $this->widgetSchema->setHelp('permissions_list', 'The default permissions are appropriate for a group that will be given editing privileges somewhere in the site. Members of the group will be able to author blog posts, upload media and view locked pages but will not have editing privileges for pages until you specifically grant them to that group via "This Page."');
 }
コード例 #3
0
 public function configure()
 {
     parent::configure();
     $this->getWidget('sf_guard_group_permission_list')->setOption("renderer_class", "csWidgetFormSelectDoubleList");
 }
コード例 #4
0
 protected function setupInheritance()
 {
     parent::setupInheritance();
     $this->widgetSchema->setNameFormat('sf_moo_doo_group[%s]');
 }
コード例 #5
0
 public function configure()
 {
     parent::configure();
     $this->widgetSchema->getFormFormatter()->setTranslationCatalogue('apostrophe');
 }
コード例 #6
0
 public function configure()
 {
     parent::configure();
     unset($this['sf_guard_group_permission_list']);
 }