Lines Matching refs:this

26         $this->helper = plugin_load('helper', 'farmer');
44 $data = $this->validateAnimalData();
47 $this->createNewAnimal(
56 $url = $this->helper->getAnimalURL($data['name']);
59 msg(sprintf($this->getLang('animal creation success'), $link), 1);
71 $farmconfig = $this->helper->getConfig();
76 $form->addFieldsetOpen($this->getLang('animal configuration'));
77 $form->addTextInput('animalname', $this->getLang('animal'));
80 $animals = $this->helper->getAllAnimals();
82 $form->addFieldsetOpen($this->getLang('animal template'));
92 $form->addRadioButton('allowreg', $this->getLang('inherit user registration'))
95 $form->addRadioButton('allowreg', $this->getLang('enable user registration'))
97 $form->addRadioButton('allowreg', $this->getLang('disable user registration'))
106 $form->addFieldsetOpen($this->getLang('animal administrator'));
108 $btn = $form->addRadioButton('adminsetup', $this->getLang('noUsers'))
114 $form->addRadioButton('adminsetup', $this->getLang('importUsers'))
116 $form->addRadioButton('adminsetup', $this->getLang('currentAdmin'))
119 $btn = $form->addRadioButton('adminsetup', $this->getLang('newAdmin'))
124 $form->addPasswordInput('adminPassword', $this->getLang('admin password'));
127 $form->addButton('farmer__submit', $this->getLang('submit'))
152 $errors[] = $this->getLang('animalname_missing');
153 } elseif (!$this->helper->validateAnimalName($animalname)) {
154 $errors[] = $this->getLang('animalname_invalid');
158 $errors[] = $this->getLang('adminPassword_empty');
162 $errors[] = $this->getLang('animalname_preexisting');
166 $errors[] = $this->getLang('aclpolicy missing/bad');
210 $ok = $this->helper->copyDir(__DIR__ . '/../_animal', $animaldir);
212 msg($this->getLang('animal creation error'), -1);
227 if (!$this->helper->copyDir($templatedir, $animaldir . '/' . $dir, $exclude)) {
228 msg(sprintf($this->getLang('animal template copy error'), $dir), -1);
259 // something went wrong, but we don't care. this is a nice to have feature only
264 $users = "# <?php exit()?>\n" . $this->makeAdminLine($adminPassword) . "\n";
266 $users = "# <?php exit()?>\n" . $this->getAdminLine() . "\n";
334 // deactivate plugins by default FIXME this should be nicer
335 $deactivatedPluginsList = explode(',', $this->getConf('deactivated plugins'));
340 $this->helper->setPluginState(trim($plugin), $name, 0);