Пример #1
0
 public static function IdentifierFromDictionary($dict)
 {
     $identifier = new Identifier();
     $identifier->docset_name = $dict['docset_name'];
     $identifier->docset_filename = $dict['docset_filename'];
     $identifier->docset_platform = $dict['docset_platform'];
     $identifier->docset_bundle = $dict['docset_bundle'];
     $identifier->docset_version = $dict['docset_version'];
     $identifier->page_path = $dict['page_path'];
     $identifier->page_title = array_key_exists('page_title', $dict) ? $dict['page_title'] : '';
     $identifier->httrack_source = array_key_exists('httrack_source', $dict) ? $dict['httrack_source'] : '';
     $identifier->trim();
     return $identifier;
 }