Пример #1
0
 /**
  * This method assists with freeing, releasing, and resetting un-managed resources.
  *
  * @access public
  * @param boolean $disposing                                whether managed resources can be disposed
  *                                                          in addition to un-managed resources
  *
  * @see http://paul-m-jones.com/archives/262
  * @see http://www.alexatnet.com/articles/optimize-php-memory-usage-eliminate-circular-references
  */
 public function dispose($disposing = true)
 {
     $this->current = null;
     $this->rules->clear();
     if ($disposing) {
         $this->reader = null;
         $this->rules = null;
     }
     if ($this->reader !== null) {
         $this->reader->seek(0);
     }
 }
Пример #2
0
 /**
  * This method removes all elements in the stack.
  *
  * @access public
  */
 public function clear()
 {
     $this->list->clear();
 }
Пример #3
0
 /**
  * This method removes all tasks in this task composite.
  *
  * @access public
  */
 public function removeTasks()
 {
     $this->tasks->clear();
 }