当前位置: 首页>>代码示例>>PHP>>正文


PHP _parser_text_no_function_函数代码示例

本文整理汇总了PHP中_parser_text_no_function_函数的典型用法代码示例。如果您正苦于以下问题:PHP _parser_text_no_function_函数的具体用法?PHP _parser_text_no_function_怎么用?PHP _parser_text_no_function_使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了_parser_text_no_function_函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: parse_xml_fields

 function parse_xml_fields($filename)
 {
     global $msg;
     $f_pos = strrpos($filename, '.');
     $f_end = substr($filename, $f_pos);
     $f_deb = substr($filename, 0, $f_pos);
     if (file_exists($f_deb . "_subst" . $f_end)) {
         $filename = $f_deb . "_subst" . $f_end;
     }
     $fp = fopen($filename, "r") or die("Can't find XML file");
     $xml = fread($fp, filesize($filename));
     fclose($fp);
     $param = _parser_text_no_function_($xml, "FIELDS");
     for ($i = 0; $i < count($param['FIELD']); $i++) {
         $name = $param['FIELD'][$i]['NAME'];
         $this->fields[$name]['name'] = $param['FIELD'][$i]['NAME'];
         $this->fields[$name]['size_max'] = $param['FIELD'][$i]['SIZE_MAX'];
         $this->fields[$name]['html'] = $param['FIELD'][$i]['HTML'][0]['value'];
         $this->fields[$name]['html_ext'] = $param['FIELD'][$i]['HTML_EXT'][0]['value'];
         $this->fields[$name]['sql'] = $param['FIELD'][$i]['SQL'][0]['value'];
         $this->fields[$name]['sql_ext'] = $param['FIELD'][$i]['SQL_EXT'][0]['value'];
         $label = $param['FIELD'][$i]['LABEL'];
         if (stripos($label, 'msg:') === 0) {
             $label = $msg[substr($label, 4)];
         }
         $this->fields[$name]['label'] = $label;
     }
     return 0;
 }
开发者ID:noble82,项目名称:proyectos-ULS,代码行数:29,代码来源:notice_doublon.class.php

示例2: run_task

function run_task($id_tache, $type_tache, $id_planificateur, $num_es_user, $connectors_out_source_id)
{
    global $base_path, $dbh;
    global $PMBuserid;
    @ini_set('zend.ze1_compatibility_mode', 0);
    $query = "select * from connectors_out_sources where connectors_out_source_id=" . $connectors_out_source_id;
    $res = mysql_query($query);
    $row = mysql_fetch_object($res);
    $connectors_out_sources_connectornum = $row->connectors_out_sources_connectornum;
    $daconn = instantiate_connecteur_out($connectors_out_sources_connectornum);
    if ($daconn) {
        $source_object = $daconn->instantiate_source_class($connectors_out_source_id);
    } else {
        $source_object = NULL;
    }
    $es = new external_services();
    $array_functions = array();
    foreach ($source_object->config["exported_functions"] as $exported_function) {
        $array_functions[] = $exported_function["group"] . "_" . $exported_function["name"];
    }
    $proxy = $es->get_proxy($PMBuserid, $array_functions);
    $filename = $base_path . "/admin/planificateur/catalog.xml";
    $xml = file_get_contents($filename);
    $param = _parser_text_no_function_($xml, "CATALOG");
    foreach ($param["ACTION"] as $anitem) {
        if ($type_tache == $anitem["ID"]) {
            require_once $base_path . "/admin/planificateur/" . $anitem["NAME"] . "/" . $anitem["NAME"] . ".class.php";
            $obj_type = new $anitem["NAME"]($id_tache);
            $obj_type->setEsProxy($proxy);
            $obj_type->execute();
            $obj_type->checkParams($id_planificateur);
        }
    }
}
开发者ID:bouchra012,项目名称:PMB,代码行数:34,代码来源:run_task.php

示例3: parse_config

 function parse_config()
 {
     global $include_path;
     global $lang;
     $fp = fopen($include_path . "/create_proc/{$lang}.xml", "r") or die("Can't find XML file");
     $xml = fread($fp, filesize($include_path . "/create_proc/{$lang}.xml"));
     fclose($fp);
     $param = _parser_text_no_function_($xml, "PMBFIELDS");
     for ($i = 0; $i < count($param["LISTFIELDS"][0]["ITEM"]); $i++) {
         $this->list_fields[$param["LISTFIELDS"][0]["ITEM"][$i]["ID"]]["TITLE"] = $param["LISTFIELDS"][0]["ITEM"][$i]["TITRE"];
         $this->list_fields[$param["LISTFIELDS"][0]["ITEM"][$i]["ID"]]["SEPARATOR"] = $param["LISTFIELDS"][0]["ITEM"][$i]["SEPARATEUR"];
         $this->list_fields[$param["LISTFIELDS"][0]["ITEM"][$i]["ID"]]["DATATYPE"] = $param["LISTFIELDS"][0]["ITEM"][$i]["TYPE"];
         $this->list_fields[$param["LISTFIELDS"][0]["ITEM"][$i]["ID"]]["CHAMP"] = $param["LISTFIELDS"][0]["ITEM"][$i]["CHAMP"];
         $this->list_fields[$param["LISTFIELDS"][0]["ITEM"][$i]["ID"]]["TABLE"] = $param["LISTFIELDS"][0]["ITEM"][$i]["TABLE"];
         $this->list_fields[$param["LISTFIELDS"][0]["ITEM"][$i]["ID"]]["JOINTURE"] = $param["LISTFIELDS"][0]["ITEM"][$i]["JOINTURE"];
         $this->list_fields[$param["LISTFIELDS"][0]["ITEM"][$i]["ID"]]["INDEX"] = $param["LISTFIELDS"][0]["ITEM"][$i]["INDEX"];
     }
     for ($i = 0; $i < count($param["TYPEFIELDS"][0]["FIELD"]); $i++) {
         for ($j = 0; $j < count($param["TYPEFIELDS"][0]["FIELD"][$i]["QUERY"]); $j++) {
             $this->op_type[$param["TYPEFIELDS"][0]["FIELD"][$i]["DATATYPE"]][$j] = $param["TYPEFIELDS"][0]["FIELD"][$i]["QUERY"][$j]["FOR"];
         }
     }
     for ($i = 0; $i < count($param["OPERATORS"][0]["OPERATOR"]); $i++) {
         $this->operateur[$param["OPERATORS"][0]["OPERATOR"][$i]["NAME"]]["TITRE"] = $param["OPERATORS"][0]["OPERATOR"][$i]["value"];
         $this->operateur[$param["OPERATORS"][0]["OPERATOR"][$i]["NAME"]]["DEB"] = $param["OPERATORS"][0]["OPERATOR"][$i]["DEB"];
         $this->operateur[$param["OPERATORS"][0]["OPERATOR"][$i]["NAME"]]["FIN"] = $param["OPERATORS"][0]["OPERATOR"][$i]["END"];
     }
 }
开发者ID:noble82,项目名称:proyectos-ULS,代码行数:28,代码来源:create_proc.class.php

示例4: parseXml

 static function parseXml()
 {
     global $include_path;
     $xmlFile = $include_path . "/classementGen/classementGen.xml";
     // Gestion de fichier subst
     $xmlFile_subst = substr($xmlFile, 0, -4) . "_subst.xml";
     if (file_exists($xmlFile_subst)) {
         $xmlFile = $xmlFile_subst;
     }
     //Parse le fichier dans un tableau
     $fp = fopen($xmlFile, "r") or die("Can't find XML file {$xmlFile}");
     $xml = fread($fp, filesize($xmlFile));
     fclose($fp);
     $param = _parser_text_no_function_($xml, "PMBCLASSEMENT");
     //Récupération des éléments
     for ($i = 0; $i < count($param["TYPES"][0]["TYPE"]); $i++) {
         $p_typ = $param["TYPES"][0]["TYPE"][$i];
         $typ = array();
         $typ["TABLE"] = $p_typ["TABLE"][0]["value"];
         $typ["TABLE_ID"] = $p_typ["TABLE_ID"][0]["value"];
         $typ["TABLE_CLASSEMENT_FIELD"] = $p_typ["TABLE_CLASSEMENT_FIELD"][0]["value"];
         $typ["AUTORISATION_WHERE"] = $p_typ["AUTORISATION_WHERE"][0]["value"];
         $_SESSION["classementGen_types"][$p_typ["NAME"]] = $typ;
     }
 }
开发者ID:noble82,项目名称:proyectos-ULS,代码行数:25,代码来源:classementGen.class.php

示例5: report_to_rtf

 function report_to_rtf($xml = "")
 {
     //Parse le fichier dans un tableau
     $param = _parser_text_no_function_($xml, "REPORT");
     $this->intro = $param['INTRO'];
     $this->notes = $param['NOTES'][0]['NOTE'];
     $this->generate_RTF();
 }
开发者ID:noble82,项目名称:proyectos-ULS,代码行数:8,代码来源:report_to_rtf.class.php

示例6: workflow

 function workflow($obj_name, $workflow_name = '')
 {
     global $include_path;
     $this->object_name = $obj_name;
     $file = $include_path . "/demandes/workflow.xml";
     $file_subst = $include_path . "/demandes/workflow_subst.xml";
     if (file_exists($file_subst)) {
         $xml = file_get_contents($file_subst, "r");
     } else {
         $xml = file_get_contents($file, "r") or die("Can't find XML file {$file}");
     }
     //Parse le fichier dans un tableau
     $param = _parser_text_no_function_($xml, "STRUCTURE");
     //Liste des états généraux (nom=>libellé)
     for ($i = 0; $i < count($param['STATES'][0]['STATE']); $i++) {
         $this->states_com[$param['STATES'][0]['STATE'][$i]['NAME']] = $param['STATES'][0]['STATE'][$i]['COMMENT'];
     }
     //Chargement de l'objet
     for ($i = 0; $i < count($param['OBJECTS']); $i++) {
         for ($j = 0; $j < count($param['OBJECTS'][$i]['OBJECT']); $j++) {
             $nom = $param['OBJECTS'][$i]['OBJECT'][$j]['NAME'];
             if ($nom == $this->object_name) {
                 $this->object = $param['OBJECTS'][$i]['OBJECT'][$j];
             }
         }
     }
     //Chargement des attributs de l'objet
     //Etats
     for ($i = 0; $i < count($this->object['STATES'][0]['STATE']); $i++) {
         $this->object_states_by_id[$this->object['STATES'][0]['STATE'][$i]['ID']] = $this->object['STATES'][0]['STATE'][$i]['NAME'];
         $this->object_states[$this->object['STATES'][0]['STATE'][$i]['NAME']]['ID'] = $this->object['STATES'][0]['STATE'][$i]['ID'];
         $this->object_states[$this->object['STATES'][0]['STATE'][$i]['NAME']]['DEFAULT'] = $this->object['STATES'][0]['STATE'][$i]['DEFAULT'];
         $this->object_states[$this->object['STATES'][0]['STATE'][$i]['NAME']]['IMAGE'] = $this->object['STATES'][0]['STATE'][$i]['IMAGE'];
         $this->object_states[$this->object['STATES'][0]['STATE'][$i]['NAME']]['COMMENT'] = $this->getStateCommentById($this->object['STATES'][0]['STATE'][$i]['ID']);
     }
     //Types
     for ($i = 0; $i < count($this->object['TYPES'][0]['TYPE']); $i++) {
         $this->object_types_by_id[$this->object['TYPES'][0]['TYPE'][$i]['ID']] = $this->object['TYPES'][0]['TYPE'][$i]['NAME'];
         $this->object_types[$this->object['TYPES'][0]['TYPE'][$i]['NAME']]['ID'] = $this->object['TYPES'][0]['TYPE'][$i]['ID'];
         $this->object_types[$this->object['TYPES'][0]['TYPE'][$i]['NAME']]['DEFAULT'] = $this->object['TYPES'][0]['TYPE'][$i]['DEFAULT'];
         $this->object_types[$this->object['TYPES'][0]['TYPE'][$i]['NAME']]['IMAGE'] = $this->object['TYPES'][0]['TYPE'][$i]['IMAGE'];
         $this->object_types[$this->object['TYPES'][0]['TYPE'][$i]['NAME']]['COMMENT'] = $this->object['TYPES'][0]['TYPE'][$i]['COMMENT'];
     }
     //Workflow
     for ($i = 0; $i < count($this->object['WORKFLOW']); $i++) {
         if ($this->object['WORKFLOW'][$i]['NAME'] == $workflow_name) {
             $this->object_workflow = $this->object['WORKFLOW'][$i];
         }
     }
     //Transitions possibles
     for ($i = 0; $i < count($this->object_workflow['SOURCE']); $i++) {
         $cibles = array();
         for ($j = 0; $j < count($this->object_workflow['SOURCE'][$i]['TARGET']); $j++) {
             $cibles[] = $this->object_workflow['SOURCE'][$i]['TARGET'][$j]['NAME'];
         }
         $this->object_transitions[$this->object_workflow['SOURCE'][$i]['NAME']] = $cibles;
     }
 }
开发者ID:noble82,项目名称:proyectos-ULS,代码行数:58,代码来源:workflow.class.php

示例7: loadMapping

 function loadMapping()
 {
     global $class_path;
     $xmlFile = $class_path . "/synchro_rdf.xml";
     $fp = fopen($xmlFile, "r");
     if ($fp) {
         $xml = fread($fp, filesize($xmlFile));
         fclose($fp);
     }
     $mapping = _parser_text_no_function_($xml, "MAPPING");
     foreach ($mapping['OBJECT'] as $object) {
         $target = $object['TARGET'];
         $targetList = explode(",", $target);
         $arrayName = $object['TYPE'] . "Mapping";
         if ($object['TYPE'] == 'entite') {
             $arrayFields = array();
             foreach ($object['RDFFIELD'] as $field) {
                 $detail = array();
                 foreach ($field['FIELD'] as $fieldBis) {
                     $detail[$fieldBis['CODE_CHAMP'] . "_" . $fieldBis['CODE_SS_CHAMP'] . "_" . $fieldBis['ORDRE']] = 1;
                 }
                 $arrayFields[$field['NAME']] = array('function' => $field['FUNCTION'], 'lang' => $field['LANG'], 'distinct' => $field['DISTINCT'], 'detail' => $detail);
             }
             foreach ($targetList as $target) {
                 $this->entiteMapping[$target][$object['NAME']] = array('uniqueVar' => $object['UNIQUEVAR'], 'definition' => $object['DEFINITIONTRIPLET'][0], 'fields' => $arrayFields, 'links' => $object['LINK'], 'authors' => $object['AUTHORS']);
             }
         } else {
             $this->{$arrayName} = $object;
         }
     }
     //Deuxième passe pour les mêmes entités mais en cas particuliers
     foreach ($mapping['OBJECTBIS'] as $object) {
         $target = $object['TARGET'];
         $targetList = explode(",", $target);
         $arrayName = $object['TYPE'] . "Mapping";
         if ($object['TYPE'] == 'entite') {
             $arrayFields = array();
             foreach ($object['RDFFIELD'] as $field) {
                 $detail = array();
                 foreach ($field['FIELD'] as $fieldBis) {
                     $detail[$fieldBis['CODE_CHAMP'] . "_" . $fieldBis['CODE_SS_CHAMP'] . "_" . $fieldBis['ORDRE']] = 1;
                 }
                 $arrayFields[$field['NAME']] = array('function' => $field['FUNCTION'], 'lang' => $field['LANG'], 'distinct' => $field['DISTINCT'], 'detail' => $detail);
             }
             foreach ($targetList as $target) {
                 $this->entiteMapping[$target][$object['NAME']] = array('uniqueVar' => $object['UNIQUEVAR'], 'definition' => $object['DEFINITIONTRIPLET'][0], 'fields' => $arrayFields, 'links' => $object['LINK'], 'authors' => $object['AUTHORS']);
             }
         } else {
             $this->{$arrayName} = $object;
         }
     }
     return;
 }
开发者ID:bouchra012,项目名称:PMB,代码行数:53,代码来源:synchro_rdf.class.php

示例8: loadTbChampBase

 function loadTbChampBase()
 {
     global $champ_base, $include_path, $msg;
     if (!count($champ_base)) {
         $file = $include_path . "/indexation/notices/champs_base_subst.xml";
         if (!file_exists($file)) {
             $file = $include_path . "/indexation/notices/champs_base.xml";
         }
         $fp = fopen($file, "r");
         if ($fp) {
             $xml = fread($fp, filesize($file));
         }
         fclose($fp);
         $champ_base = _parser_text_no_function_($xml, "INDEXATION");
     }
     if (!count($this->tbChampBase)) {
         foreach ($champ_base["FIELD"] as $k => $v) {
             if (isset($v["TABLE"][0]["TABLEFIELD"])) {
                 foreach ($v["TABLE"][0]["TABLEFIELD"] as $k2 => $v2) {
                     if (isset($v2["NAME"])) {
                         if (isset($v2["ID"])) {
                             $this->tbChampBase[(int) $v["ID"] . "_" . (int) $v2["ID"]] = $msg[$v2["NAME"]];
                         } else {
                             $this->tbChampBase[(int) $v["ID"] . "_0"] = $msg[$v2["NAME"]];
                         }
                     } else {
                         if (isset($v2["ID"])) {
                             $this->tbChampBase[(int) $v["ID"] . "_" . (int) $v2["ID"]] = $msg[$v["NAME"]];
                         } else {
                             $this->tbChampBase[(int) $v["ID"] . "_0"] = $msg[$v["NAME"]];
                         }
                     }
                     if (isset($v2["ID"])) {
                         if (!trim($this->tbChampBase[(int) $v["ID"] . "_" . (int) $v2["ID"]])) {
                             $this->tbChampBase[(int) $v["ID"] . "_" . (int) $v2["ID"]] = "___champ sans libellé___";
                         }
                     } else {
                         if (!trim($this->tbChampBase[(int) $v["ID"] . "_0"])) {
                             $this->tbChampBase[(int) $v["ID"] . "_0"] = "___champ sans libellé___";
                         }
                     }
                 }
             }
             if (isset($v["ISBD"])) {
                 $tmp = $v["ISBD"][0];
                 $this->tbChampBase[(int) $v["ID"] . "_" . (int) $tmp["ID"]] = $msg[$tmp["NAME"] . "_" . $tmp["CLASS_NAME"]];
                 if (!trim($this->tbChampBase[(int) $v["ID"] . "_" . (int) $tmp["ID"]])) {
                     $this->tbChampBase[(int) $v["ID"] . "_" . (int) $tmp["ID"]] = "___champ sans libellé___";
                 }
             }
         }
     }
 }
开发者ID:bouchra012,项目名称:PMB,代码行数:53,代码来源:suggest.class.php

示例9: get_catalog

 function get_catalog()
 {
     if (!count($this->catalog)) {
         //Lecture des différents formats de conversion possibles
         global $base_path;
         if (file_exists("{$base_path}/admin/convert/imports/catalog_subst.xml")) {
             $fic_catal = "{$base_path}/admin/convert/imports/catalog_subst.xml";
         } else {
             $fic_catal = "{$base_path}/admin/convert/imports/catalog.xml";
         }
         $this->catalog = _parser_text_no_function_(file_get_contents($fic_catal), "CATALOG");
     }
     return $this->catalog;
 }
开发者ID:bouchra012,项目名称:PMB,代码行数:14,代码来源:pmbesConvertImport.class.php

示例10: fetch_data

 function fetch_data()
 {
     global $include_path;
     $this->info = array();
     $nomfichier = $include_path . "/harvest/harvest_fields.xml";
     if (file_exists($nomfichier)) {
         $fp = fopen($nomfichier, "r");
         if ($fp) {
             //un fichier est ouvert donc on le lit
             $xml = fread($fp, filesize($nomfichier));
             //on le ferme
             fclose($fp);
             $param = _parser_text_no_function_($xml, "HARVEST");
             $this->fields = $param["FIELD"];
         }
     }
     $this->fields_id = array();
     $i = 0;
     foreach ($this->fields as $key => $field) {
         $this->fields_id[$this->fields[$key]["ID"]] = $field;
     }
     if (!$this->id) {
         return;
     }
     $req = "select * from harvest_profil_import where id_harvest_profil_import=" . $this->id;
     $resultat = mysql_query($req);
     if (mysql_num_rows($resultat)) {
         $r = mysql_fetch_object($resultat);
         $this->info['id'] = $r->id_harvest_profil_import;
         $this->info['name'] = $r->harvest_profil_import_name;
     }
     $this->info['fields'] = array();
     $req = "select * from harvest_profil_import_field where num_harvest_profil_import=" . $this->id . " order by harvest_profil_import_field_order";
     $resultat = mysql_query($req);
     if (mysql_num_rows($resultat)) {
         while ($r = mysql_fetch_object($resultat)) {
             $this->info['fields'][$r->harvest_profil_import_field_xml_id]['id'] = $r->harvest_profil_import_field_xml_id;
             $this->info['fields'][$r->harvest_profil_import_field_xml_id]['xml'] = $r->harvest_profil_import_field_xml_id;
             $this->info['fields'][$r->harvest_profil_import_field_xml_id]['flagtodo'] = $r->harvest_profil_import_field_flag;
         }
     }
     if ($this->info['num_harvest']) {
         $this->info['harvest'] = new harvest($this->info['num_harvest']);
     }
     //printr($this->info);
 }
开发者ID:bouchra012,项目名称:PMB,代码行数:46,代码来源:harvest_profil_import.class.php

示例11: fields_array

 function fields_array()
 {
     global $include_path, $msg;
     global $dbh, $champ_base;
     if (!count($champ_base)) {
         $file = $include_path . "/indexation/notices/champs_base_subst.xml";
         if (!file_exists($file)) {
             $file = $include_path . "/indexation/notices/champs_base.xml";
         }
         $fp = fopen($file, "r");
         if ($fp) {
             $xml = fread($fp, filesize($file));
         }
         fclose($fp);
         $champ_base = _parser_text_no_function_($xml, "INDEXATION");
     }
     return $champ_base;
 }
开发者ID:noble82,项目名称:proyectos-ULS,代码行数:18,代码来源:bannette_facettes.class.php

示例12: analyse

 /**
  * On parse le fichier xml des modes d'affichage.
  */
 private function analyse()
 {
     global $include_path;
     if (!is_array($this->modes) || !count($this->modes)) {
         if (file_exists($include_path . "/records/" . $this->filename . "_subst.xml")) {
             $filepath = $include_path . "/records/" . $this->filename . "_subst.xml";
         } else {
             if (file_exists($include_path . "/records/" . $this->filename . ".xml")) {
                 $filepath = $include_path . "/records/" . $this->filename . ".xml";
             } else {
                 $filepath = $include_path . "/records/display_modes.xml";
             }
         }
         $fp = fopen($filepath, "r");
         $xml = fread($fp, filesize($filepath));
         fclose($fp);
         $this->modes = _parser_text_no_function_($xml, "MODES");
     }
 }
开发者ID:hogsim,项目名称:PMB,代码行数:22,代码来源:record_display_modes.class.php

示例13: parse_catalog

 function parse_catalog($catalog)
 {
     global $base_path, $lang;
     //Construction du tableau des connecteurs disponbibles
     $xml = file_get_contents($catalog);
     $param = _parser_text_no_function_($xml, "CATALOG");
     for ($i = 0; $i < count($param["ITEM"]); $i++) {
         $item = $param["ITEM"][$i];
         $t = array();
         if ($item["ACTIVE"] == "0") {
             continue;
         }
         $t["PATH"] = $item["PATH"];
         //Parse du manifest
         $xml_manifest = file_get_contents($base_path . "/admin/opac/opac_view/filters/" . $item["PATH"] . "/manifest.xml");
         $manifest = _parser_text_no_function_($xml_manifest, "MANIFEST");
         $t["NAME"] = $manifest["NAME"][0]["value"];
         $t["AUTHOR"] = $manifest["AUTHOR"][0]["value"];
         $t["ORG"] = $manifest["ORG"][0]["value"];
         $t["DATE"] = $manifest["DATE"][0]["value"];
         $t["STATUS"] = $manifest["STATUS"][0]["value"];
         //Commentaires
         $comment = array();
         for ($j = 0; $j < count($manifest["COMMENT"]); $j++) {
             if ($manifest["COMMENT"][$j]["lang"] == $lang) {
                 $comment = $manifest["COMMENT"][$j]["value"];
                 break;
             } else {
                 if (!$manifest["COMMENT"][$j]["lang"]) {
                     $c_default = $manifest["COMMENT"][$j]["value"];
                 }
             }
         }
         if ($j == count($manifest["COMMENT"])) {
             $comment = $c_default;
         }
         $t["COMMENT"] = $comment;
         $this->catalog[$item["ID"]] = $t;
         $this->msg[$item["ID"]] = $this->get_messages("/admin/opac/opac_view/filters/" . $item["PATH"]);
     }
 }
开发者ID:noble82,项目名称:proyectos-ULS,代码行数:41,代码来源:opac_filters.class.php

示例14: get_info_categ

 static function get_info_categ($record)
 {
     global $include_path, $tabl_categ_has_recovered, $tabl_categ_recovered, $tabl_categ_recovery;
     $tabl_categ_recovered = array();
     if (!isset($tabl_categ_has_recovered)) {
         $tabl_categ_has_recovered = array();
         $tabl_categ_recovery = array();
         if (file_exists($include_path . "/category_auto/import_category.xml")) {
             $tabl_categ_recovery = _parser_text_no_function_(file_get_contents($include_path . "/category_auto/import_category.xml"), "AUTHORITY");
         }
         foreach ($tabl_categ_recovery as $root) {
             foreach ($root as $thes) {
                 foreach ($thes["CATEGORY"] as $root_field) {
                     foreach ($root_field["FIELD"] as $field_val) {
                         $name_field = $field_val["CODE"];
                         if ($field_val["AUTHORITY_NUMBER"]) {
                             $tmp = array();
                             $tmp["field"] = $name_field;
                             $tmp["subfield"] = $field_val["AUTHORITY_NUMBER"];
                             $tabl_categ_has_recovered[] = $tmp;
                         }
                         if ($field_val["ORDER"] == "import") {
                             $tmp = array();
                             $tmp["field"] = $name_field;
                             $tmp["subfield"] = "";
                             $tabl_categ_has_recovered[] = $tmp;
                         } else {
                             category_auto::browse_subfields($field_val["SUBFIELD"], $name_field, $tabl_categ_has_recovered);
                         }
                     }
                 }
             }
         }
     }
     if (count($tabl_categ_has_recovered)) {
         foreach ($tabl_categ_has_recovered as $value) {
             $tabl_categ_recovered[$value["field"] . $value["subfield"]] = $record->get_subfield_array_array($value["field"], $value["subfield"]);
         }
     }
 }
开发者ID:noble82,项目名称:proyectos-ULS,代码行数:40,代码来源:category_auto.class.php

示例15: convert_txt_prisme

function convert_txt_prisme($notice, $s, $islast, $isfirst, $param_path)
{
    global $charset;
    $r_ = "+++";
    $notice = "<?xml version='1.0' encoding='{$charset}' ?>" . $notice;
    $nt = _parser_text_no_function_($notice, "NOTICE");
    if ($nt["TY"][0]["value"] == "CHAPEAU") {
        $r['VALID'] = false;
        $r['ERROR'] = "Notice " . $nt["REF"][0]["value"] . " - Ignorée, c'est une notice chapeau !";
        $r['DATA'] = "";
        return $r;
    }
    if (!$nt["OP"][0]["value"]) {
        $nt["OP"][0]["value"] = $s["OP"][0]["value"];
    }
    $r_ .= $nt["REF"][0]["value"] . ";;" . $nt["OP"][0]["value"] . ";;" . $nt["DS"][0]["value"] . ";;" . $nt["TY"][0]["value"] . ";;" . $nt["URL"][0]["value"] . ";;";
    $r_ .= $nt["GEN"][0]["value"] . ";;" . $nt["AU"][0]["value"] . ";;" . $nt["AUCO"][0]["value"] . ";;" . $nt["AS"][0]["value"] . ";;";
    $r_ .= $nt["DIST"][0]["value"] . ";;" . $nt["TI"][0]["value"] . ";;" . $nt["TN"][0]["value"] . ";;" . $nt["COL"][0]["value"] . ";;";
    if ($nt["TY"][0]["value"] == "REVUE") {
        if (!$nt["TP"][0]["value"]) {
            $r['VALID'] = false;
            $r['ERROR'] = "Notice " . $nt["REF"][0]["value"] . " - " . $nt["TIT"][0]["value"] . " : Article sans titre de périodique";
            $r['DATA'] = "";
            return $r;
        } else {
            $r_ .= $nt["TP"][0]["value"] . ";;";
        }
    } else {
        $r_ .= ";;";
    }
    $r_ .= $nt["SO"][0]["value"] . ";;" . $nt["ED"][0]["value"] . ";;" . $nt["ISBN"][0]["value"] . ";;" . $nt["DP"][0]["value"] . ";;";
    $r_ .= $nt["DATRI"][0]["value"] . ";;" . $nt["ND"][0]["value"] . ";;";
    $r_ .= $nt["NO"][0]["value"] . ";;" . $nt["GO"][0]["value"] . ";;" . $nt["HI"][0]["value"] . ";;" . $nt["DENP"][0]["value"] . ";;";
    $r_ .= $nt["DE"][0]["value"] . ";;" . $nt["CD"][0]["value"] . ";;" . $nt["RESU"][0]["value"] . ";;";
    $r['VALID'] = true;
    $r['ERROR'] = "";
    $r['DATA'] = $r_;
    return $r;
}
开发者ID:noble82,项目名称:proyectos-ULS,代码行数:39,代码来源:to_txt.inc.php


注:本文中的_parser_text_no_function_函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。