コード例 #1
0
ファイル: Config.class.php プロジェクト: pthreat/apf-dev
 protected function __configure()
 {
     parent::getAttributeContainer()->add(array('name' => 'name', 'description' => 'Project name'))->add(array('name' => 'description', 'description' => 'Project description'))->add(array('name' => 'directories', 'description' => 'Project directories'))->add(array('name' => 'documentRoot', 'description' => 'Project document root'))->add(array('name' => 'modules', 'description' => 'Project modules', 'multiple' => TRUE, 'item' => 'module'))->add(array('name' => 'templates', 'description' => 'Templates (at a project level)'))->add(array('name' => 'fragments', 'description' => 'Fragments (at a project level)', 'multiple' => TRUE, 'item' => 'fragment'))->add(array('name' => 'assets', 'description' => 'Project assets', 'multiple' => TRUE, 'item' => 'asset'))->add(array('name' => 'connections', 'description' => 'Project connections', 'multiple' => TRUE, 'item' => 'connection'));
 }
コード例 #2
0
ファイル: Config.class.php プロジェクト: pthreat/apf-dev
 public function __configure()
 {
     parent::getAttributeContainer()->add(array('name' => 'title', 'description' => 'Form title'))->add(array('name' => 'action', 'description' => 'Form action', 'validate' => FALSE))->add(array('name' => 'layout', 'description' => 'Form layout'))->add(array('name' => 'elements', 'item' => 'element', 'description' => 'Elements composing this form', 'multiple' => TRUE));
 }