public function loadFromArray(array $entries)
     {
         foreach ($entries as $var=>$val) {
             switch ($var) {
                case 'name': $this->setName($val); break;
                case 'version': $this->setVersion($val); break;
                case 'relative_path': $this->setRelativePath($val); break;
                case 'assets_path':
                case 'path':
                    $this->setAssetsPath($val); break;
                case 'assets_presets': $this->setAssetsPresets($val); break;
            }
         }
         return $this;
     }
public function loadFromArray(array $entries)
     {
         foreach ($entries as $var=>$val) {
             switch ($var) {
                case 'name': $this->setName($val); break;
                case 'version': $this->setVersion($val); break;
                case 'relative_path': $this->setRelativePath($val); break;
                case 'assets_path':
                case 'path':
                    $this->setAssetsPath($val); break;
                case 'assets_presets': $this->setAssetsPresets($val); break;
            }
         }
         return $this;
     }
public function loadFromArray ( array $ entries ) { foreach ( $ entries as $ var => $ val ) { switch ( $ var ) { case 'name' : $ this -> setName ( $ val ) ; break ; case 'version' : $ this -> setVersion ( $ val ) ; break ; case 'relative_path' : $ this -> setRelativePath ( $ val ) ; break ; case 'assets_path' : case 'path' : $ this -> setAssetsPath ( $ val ) ; break ; case 'assets_presets' : $ this -> setAssetsPresets ( $ val ) ; break ; } } return $ this ; }
Load a new package from the `ASSETS_DB_FILENAME` entry

@param array $entries
@return self
Load a new package from the ASSETS_DB_FILENAME entry