Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
UpdateForm.php
1 <?php
2 /**
3  *
4  */
5 class UpdateForm extends CFormModel
6 {
7  public $file;
8 
9  /**
10  * Allows to set form rules
11  *
12  * @return array
13  */
14  public function rules()
15  {
16  return array(
17  array('file', 'file')
18  );
19  }
20 
21  /**
22  * Allows to set form labels
23  *
24  * @return array
25  */
26  public function attributeLabels()
27  {
28  return array(
29  'file' => UpdatesModule::t('Release file')
30  );
31  }
32 
33 }