applications/vanilla/models/class.categorymodel.php
public function SaveUserTree($CategoryID, $Set) {
      $Categories = $this->GetSubtree($CategoryID);
      foreach ($Categories as $Category) {
         $this->SQL->Replace(
            'UserCategory',
            $Set,
            array('UserID' => Gdn::Session()->UserID, 'CategoryID' => $Category['CategoryID']));
      }
      $Key = 'UserCategory_'.Gdn::Session()->UserID;
      Gdn::Cache()->Remove($Key);
   }
public function SaveUserTree($CategoryID, $Set) {
      $Categories = $this->GetSubtree($CategoryID);
      foreach ($Categories as $Category) {
         $this->SQL->Replace(
            'UserCategory',
            $Set,
            array('UserID' => Gdn::Session()->UserID, 'CategoryID' => $Category['CategoryID']));
      }
      $Key = 'UserCategory_'.Gdn::Session()->UserID;
      Gdn::Cache()->Remove($Key);
   }
public function SaveUserTree ( $ CategoryID , $ Set ) { $ Categories = $ this -> GetSubtree ( $ CategoryID ) ; foreach ( $ Categories as $ Category ) { $ this -> SQL -> Replace ( 'UserCategory' , $ Set , array ( 'UserID' => Gdn :: Session ( ) -> UserID , 'CategoryID' => $ Category [ 'CategoryID' ] ) ) ; } $ Key = 'UserCategory_' . Gdn :: Session ( ) -> UserID ; Gdn :: Cache ( ) -> Remove ( $ Key ) ; }
Grab the Category IDs of the tree.

@since 2.0.18
@access public
@param int $CategoryID
@param mixed $Set
Grab the Category IDs of the tree .