Example #1
0
 /**
  * returns a new object, based on the contents of a passed data-row. If populateFullTree is true, its recursive looksup and database activity (if applicable)
  * @method getAsObject
  * @param  [type]      $row              [description]
  * @param  [type]      $populateFullTree [description]
  * @return [type]                        [description]
  */
 public static function getAsObject($row, $populateFullTree = false)
 {
     $obj = new self();
     $obj->populateFromRow($row);
     if ($populateFullTree) {
         // TODO: Flush out functionality when population step is recursive
     }
     return $obj;
 }