load() public method

Load the pocket's data from an array.
public load ( array $Data )
$Data array
 /**
  *
  *
  * @param bool|false $Force
  */
 protected function _loadState($Force = false)
 {
     if (!$Force && $this->StateLoaded) {
         return;
     }
     $Pockets = Gdn::sql()->get('Pocket', 'Location, Sort, Name')->resultArray();
     foreach ($Pockets as $Row) {
         $Pocket = new Pocket();
         $Pocket->load($Row);
         $this->addPocket($Pocket);
     }
     $this->StateLoaded = true;
 }