Example #1
0
 /**
  * Update database for changed state.
  * When a state-change occurs, the state is applied to the comment and all sub-comments.
  * @access private
  */
 protected function _state_changed()
 {
     if ($this->exists()) {
         $sub_folders = $this->sub_folders();
         foreach ($sub_folders as $folder) {
             $folder->set_state($this->state, true);
         }
     }
     parent::_state_changed();
 }
Example #2
0
 /**
  * Update database for changed state.
  * When a state-change occurs, the state is applied to the comment and all sub-comments.
  * @access private
  */
 protected function _state_changed()
 {
     if ($this->exists()) {
         $sub_comments = $this->sub_comments();
         foreach ($sub_comments as &$com) {
             $com->set_state($this->state, true);
         }
     }
     parent::_state_changed();
 }