Lines Matching defs:options

38      * @var array the options for this move plan
40 protected $options = array(); // defaults are set in loadOptions()
92 * Load the current options if any
94 * If no options are found, the default options will be extended by any available
95 * config options
99 $this->options = array(
112 // options
120 // merge whatever options are saved currently
123 $options = unserialize(io_readFile($file, false));
124 $this->options = array_merge($this->options, $options);
129 * Save the current options
134 return io_saveFile($this->files['opts'], serialize($this->options));
138 * Return the current state of an option, null for unknown options
144 if(isset($this->options[$name])) {
145 return $this->options[$name];
160 $this->options[$name] = $value;
170 $this->options['pages_all'] +
171 $this->options['media_all'];
174 $this->options['pages_run'] +
175 $this->options['media_run'];
177 if($this->options['autorewrite']) {
178 $max += $this->options['affpg_all'];
179 $remain += $this->options['affpg_run'];
192 return (bool) $this->options['started'];
201 return $this->options['committed'];
254 if($this->options['committed']) throw new Exception('plan is committed already, can not be added to');
291 if($this->options['committed']) throw new Exception('plan is committed already, can not be committed again');
344 if(!$this->options['pages_all'] && !$this->options['media_all']) {
349 $this->options['committed'] = true;
363 if(!$this->options['committed']) throw new Exception('plan is not committed yet!');
366 if(!$this->options['started']) $this->options['started'] = time();
402 if($this->options['autorewrite'] && @filesize($this->files['affected']) > 1) {
500 if(!$this->options['autoskip']) {
517 $this->options[$items_run_counter]--;
518 $return_items_run = $this->options[$items_run_counter];
549 $this->options['affpg_run']--;
554 return $this->options['affpg_run'];
638 * Retrieve the last error from the MSG array and store it in the options
649 $this->options['lasterror'] = $last['msg'];
652 $this->options['lasterror'] = 'Unknown error';
663 $this->options['lasterror'] = false;
673 return $this->options['lasterror'];
830 $this->options[$store . '_all'] = $count;
831 $this->options[$store . '_run'] = $count;
948 $optime = $this->options['started'];