コード例 #1
0
ファイル: IterateTask.php プロジェクト: netresearch/kite
 /**
  * Configure the options
  *
  * @return array
  */
 protected function configureVariables()
 {
     return array('array' => array('type' => 'array', 'required' => true, 'label' => 'The array to iterate over'), 'as' => array('type' => 'string|array', 'default' => $this->defaultAs, 'label' => 'String with variable name to set the VALUEs to or array which\'s key to set the KEYs  and which\'s value to set the VALUEs to'), 'key' => array('type' => 'string', 'default' => $this->defaultKey, 'label' => 'Variable name to set the KEYs to (ignored when "as" doesn\'t provide both'), '--') + parent::configureVariables();
 }
コード例 #2
0
ファイル: TryCatchTask.php プロジェクト: netresearch/kite
 /**
  * Configure the options
  *
  * @return array
  */
 protected function configureVariables()
 {
     return array('onCatch' => array('type' => 'array', 'label' => 'Task to execute when an exception was catched'), 'errorMessage' => array('type' => 'string', 'label' => 'Message to display on error'), '--') + parent::configureVariables();
 }