Source for file field_definition_131.php

Documentation is available at field_definition_131.php

  1. <?php
  2. // ---------------------------------------------
  3. // simeray@tektonika.com
  4. // last modification: 10/12/07
  5. // ---------------------------------------------
  6.  
  7. // --------------------------------------------------
  8. // AGORA 131 TO SPIP 192
  9. // --------------------------------------------------
  10.  
  11. // --------------------------------------------------
  12. // spip_rubriques
  13. // --------------------------------------------------
  14.  
  15. $spip_rubriques = array(
  16. 'id_rubrique' => 'id_rubrique',
  17. 'id_parent' => 'id_parent',
  18. 'titre' => 'titre',
  19. 'descriptif' => 'descriptif',
  20. 'texte' => 'texte',
  21. 'id_secteur' => 'id_secteur',
  22. 'maj' => 'maj',
  23. 'export' => 'export',
  24. 'id_import' => 'id_import',
  25. 'statut' => 'statut',
  26. 'date_heure' => 'date',
  27. 'lang' => 'lang',
  28. 'langue_choisie' => 'langue_choisie',
  29. 'extra' => 'extra'
  30. );
  31.  
  32. // --------------------------------------------------
  33. // spip_articles
  34. // checked dec 12
  35. // --------------------------------------------------
  36.  
  37. $spip_articles = array(
  38. 'id_article' => 'id_article',
  39. 'surtitre' => 'surtitre',
  40. 'titre' => 'titre',
  41. 'soustitre' => 'soustitre',
  42. 'id_rubrique' => 'id_rubrique',
  43. 'descriptif' => 'descriptif',
  44. 'chapo' => 'chapo',
  45. 'texte' => 'texte',
  46. 'ps' => 'ps',
  47. 'date_heure' => 'date',
  48. 'statut' => 'statut',
  49. 'id_secteur' => 'id_secteur',
  50. 'maj' => 'maj',
  51. 'export' => 'export',
  52. 'date_redac' => 'date_redac',
  53. 'visites' => 'visites',
  54. 'referers' => 'referers',
  55. 'popularite' => 'popularite',
  56. 'accepter_forum' => 'accepter_forum',
  57. 'date_modif' => 'date_modif',
  58. 'lang' => 'lang',
  59. 'langue_choisie' => 'langue_choisie',
  60. 'id_trad' => 'id_trad',
  61. 'extra' => 'extra',
  62. 'id_version' => 'id_version',
  63. 'nom_site' => 'nom_site',
  64. 'url_site' => 'url_site'
  65. );
  66.  
  67. // --------------------------------------------------
  68. // spip_auteurs
  69. // checked dec 12
  70. // --------------------------------------------------
  71.  
  72. $spip_auteurs = array(
  73. 'id_auteur' => 'id_auteur',
  74. 'nom' => 'nom',
  75. 'bio' => 'bio',
  76. 'email' => 'email',
  77. 'nom_site' => 'nom_site',
  78. 'url_site' => 'url_site',
  79. 'login' => 'login',
  80. 'pass' => 'pass',
  81. 'low_sec' => 'low_sec',
  82. 'statut' => 'statut',
  83. 'maj' => 'maj',
  84. 'pgp' => 'pgp',
  85. 'htpass' => 'htpass',
  86. 'en_ligne' => 'en_ligne',
  87. 'imessage' => 'imessage',
  88. 'messagerie' => 'messagerie',
  89. 'alea_actuel' => 'alea_actuel',
  90. 'alea_futur' => 'alea_futur',
  91. 'prefs' => 'prefs',
  92. 'cookie_oubli' => 'cookie_oubli',
  93. 'source' => 'source',
  94. 'lang' => 'lang',
  95. 'extra' => 'extra'
  96. );
  97.  
  98. // -------------------------------
  99. // spip_auteurs_articles
  100. // checked dec 12
  101. // -------------------------------
  102.  
  103. $spip_auteurs_articles = array(
  104. 'id_auteur' => 'id_auteur',
  105. 'id_article' => 'id_article'
  106. );
  107.  
  108. // -------------------------------
  109. // spip_auteurs_messages
  110. // checked dec 12
  111. // -------------------------------
  112.  
  113. $spip_auteurs_messages = array(
  114. 'id_auteur' => 'id_auteur',
  115. 'id_message ' => 'id_message ',
  116. 'vu' => 'vu'
  117.  
  118. );
  119.  
  120. // -------------------------------
  121. // spip_auteurs_rubriques
  122. // checked dec 12
  123. // -------------------------------
  124.  
  125. $spip_auteurs_rubriques = array(
  126. 'id_auteur' => 'id_auteur',
  127. 'id_rubrique ' => 'id_rubrique '
  128. );
  129.  
  130.  
  131. // -------------------------------
  132. // spip_breves
  133. // checked dec 12
  134. // -------------------------------
  135.  
  136. $spip_breves = array(
  137. 'id_breve' => 'id_breve',
  138. 'date_heure' => 'date_heure',
  139. 'titre' => 'titre',
  140. 'texte' => 'texte',
  141. 'lien_titre' => 'lien_titre',
  142. 'lien_url' => 'lien_url',
  143. 'statut' => 'statut',
  144. 'id_rubrique' => 'id_rubrique',
  145. 'lang' => 'lang',
  146. 'langue_choisie' => 'langue_choisie',
  147. 'maj' => 'maj',
  148. 'extra' => 'extra'
  149. );
  150.  
  151.  
  152. // -------------------------------
  153. // spip_caches
  154. // checked dec 12
  155. // -------------------------------
  156. // not in agora
  157.  
  158. // -------------------------------
  159. // spip_documents
  160. // checked dec 12
  161. // -------------------------------
  162.  
  163. $spip_documents = array(
  164. 'id_document' => 'id_document',
  165. 'id_vignette' => 'id_vignette',
  166. 'id_type' => 'id_type',
  167. 'titre' => 'titre',
  168. 'date_heure' => 'date',
  169. 'descriptif' => 'descriptif',
  170. 'fichier' => 'fichier',
  171. 'taille' => 'taille',
  172. 'largeur' => 'largeur',
  173. 'hauteur' => 'hauteur',
  174. 'mode_spip' => 'mode',
  175. 'idx' => 'idx'
  176. );
  177.  
  178.  
  179. // -------------------------------
  180. // spip_documents_articles
  181. // checked dec 12
  182. // -------------------------------
  183.  
  184. $spip_documents_articles = array(
  185. 'id_document' =>'id_document',
  186. 'id_article' =>'id_article'
  187. );
  188.  
  189.  
  190. // -------------------------------
  191. // spip_documents_breves
  192. // checked dec 12
  193. // -------------------------------
  194.  
  195. $spip_documents_breves = array(
  196. 'id_document' =>'id_document',
  197. 'id_breve' =>'id_breve'
  198. );
  199.  
  200.  
  201. // -------------------------------
  202. // spip_documents_rubriques
  203. // checked dec 12
  204. // -------------------------------
  205.  
  206. $spip_documents_rubriques = array(
  207. 'id_document' =>'id_document',
  208. 'id_rubrique' =>'id_rubrique'
  209. );
  210.  
  211.  
  212. // -------------------------------
  213. // spip_forum
  214. // checked dec 12
  215. // -------------------------------
  216.  
  217. $spip_forum = array(
  218. 'id_forum' =>'id_forum',
  219. 'id_parent' =>'id_parent',
  220. 'id_rubrique' =>'id_rubrique',
  221. 'id_article' =>'id_article',
  222. 'id_breve' =>'id_breve',
  223. 'date_heure' =>'date_heure',
  224. 'titre' =>'titre',
  225. 'texte' =>'texte',
  226. 'auteur' =>'auteur',
  227. 'email_auteur' =>'email_auteur',
  228. 'nom_site' =>'nom_site',
  229. 'url_site' =>'url_site',
  230. 'statut' =>'statut',
  231. 'ip' =>'ip',
  232. 'maj' =>'maj',
  233. 'id_auteur' =>'id_auteur',
  234. 'id_message' =>'id_message',
  235. 'id_syndic' =>'id_syndic'
  236. );
  237.  
  238.  
  239. // -------------------------------
  240. // spip_groupes_mots
  241. // checked dec 12
  242. // -------------------------------
  243.  
  244. $spip_groupes_mots = array(
  245. 'id_groupe' =>'id_groupe',
  246. 'titre' =>'titre',
  247. 'unseul' =>'unseul',
  248. 'obligatoire' =>'obligatoire',
  249. 'articles' =>'articles',
  250. 'breves' =>'breves',
  251. 'rubriques' =>'rubriques',
  252. 'syndic' =>'syndic',
  253. 'forum' =>'forum',
  254. 'maj' =>'maj'
  255. );
  256.  
  257. /*
  258. skipped, to rebuild
  259. // -------------------------------
  260. // spip_index
  261. // checked dec 12
  262. // convert id_article => id_objet + id_table <=> article
  263. // -------------------------------
  264. $spip_index = array(
  265. 'hash' =>'hash',
  266. 'points' =>'points',
  267. 'id_article' =>'id_objet',
  268. 'id_table' =>'id_table'
  269. );
  270.  
  271. // -------------------------------
  272. // spip_index_dico
  273. // -------------------------------
  274. $spip_index_dico = array(
  275. 'hash' =>'hash',
  276. 'dico' =>'dico'
  277. );
  278. */
  279.  
  280. // -------------------------------
  281. // spip_messages
  282. // checked dec 12
  283. // -------------------------------
  284.  
  285. $spip_messages = array(
  286. 'id_message' =>'id_message',
  287. 'titre' =>'titre',
  288. 'texte' =>'texte',
  289. 'type' =>'type',
  290. 'date_heure' =>'date_heure',
  291. 'date_fin' =>'date_fin',
  292. 'rv' =>'rv',
  293. 'statut' =>'statut',
  294. 'id_auteur' =>'id_auteur',
  295. 'maj' =>'maj'
  296. );
  297.  
  298. /*
  299. skipped rebuild
  300. // -------------------------------
  301. // spip_meta
  302. // checked dec 12
  303. // -------------------------------
  304. $spip_meta = array(
  305. 'nom' =>'nom',
  306. 'valeur' =>'valeur',
  307. 'maj' =>'maj'
  308. );
  309.  
  310.  
  311. // -------------------------------
  312. // spip_mots
  313. // -------------------------------
  314. $spip_mots = array(
  315. 'id_mot' =>'id_mot',
  316. 'titre' =>'titre',
  317. 'descriptif' =>'descriptif',
  318. 'texte' =>'texte',
  319. 'id_groupe' =>'id_groupe',
  320. 'type' =>'type',
  321. 'extra' =>'extra',
  322. 'idx' =>'idx',
  323. 'url_propre' =>'url_propre',
  324. 'maj' =>'maj'
  325. );
  326.  
  327.  
  328. // -------------------------------
  329. // spip_mots_articles
  330. // -------------------------------
  331. $spip_mots_articles = array(
  332. 'id_mot' =>'id_mot',
  333. 'id_article' =>'id_article'
  334. );
  335.  
  336.  
  337. // -------------------------------
  338. // spip_mots_breves
  339. // -------------------------------
  340. $spip_mots_breves = array(
  341. 'id_mot' =>'id_mot',
  342. 'id_breve' =>'id_breve'
  343. );
  344.  
  345.  
  346. // -------------------------------
  347. // spip_mots_documents
  348. // -------------------------------
  349. $spip_mots_documents = array(
  350. 'id_mot' =>'id_mot',
  351. 'id_document' =>'id_document'
  352. );
  353.  
  354.  
  355. // -------------------------------
  356. // spip_mots_forum
  357. // -------------------------------
  358. $spip_mots_forum = array(
  359. 'id_mot' =>'id_mot',
  360. 'id_forum' =>'id_forum'
  361. );
  362.  
  363.  
  364. // -------------------------------
  365. // spip_mots_rubriques
  366. // -------------------------------
  367. $spip_mots_rubriques = array(
  368. 'id_mot' =>'id_mot',
  369. 'id_rubrique' =>'id_rubrique'
  370. );
  371.  
  372.  
  373. // -------------------------------
  374. // spip_mots_syndic
  375. // -------------------------------
  376. $spip_mots_syndic = array(
  377. 'id_mot' =>'id_mot',
  378. 'id_syndic' =>'id_syndic'
  379. );
  380. */
  381.  
  382. /*
  383. skipped, not in agora
  384. // -------------------------------
  385. // spip_ortho_cache
  386. // -------------------------------
  387. $spip_ortho_cache = array(
  388. 'lang' =>'lang',
  389. 'mot' =>'mot',
  390. 'ok' =>'ok',
  391. 'suggest' =>'suggest',
  392. 'maj' =>'maj'
  393. );
  394.  
  395.  
  396. // -------------------------------
  397. // spip_ortho_dico
  398. // -------------------------------
  399. $spip_ortho_dico = array(
  400. 'lang' =>'lang',
  401. 'mot' =>'mot',
  402. 'id_auteur' =>'id_auteur',
  403. 'maj' =>'maj'
  404. );
  405. */
  406.  
  407.  
  408. // -------------------------------
  409. // spip_petitions
  410. // checked dec 12
  411. // -------------------------------
  412.  
  413. $spip_petitions = array(
  414. 'id_article' =>'id_article',
  415. 'email_unique' =>'email_unique',
  416. 'site_obli' =>'site_obli',
  417. 'site_unique' =>'site_unique',
  418. 'message' =>'message',
  419. 'texte' =>'texte',
  420. 'maj' =>'maj'
  421. );
  422.  
  423. // -------------------------------
  424. // spip_referers
  425. // checked dec 12
  426. // -------------------------------
  427.  
  428. $spip_referers = array(
  429. 'referer_md5' =>'referer_md5',
  430. 'date_heure' =>'date',
  431. 'referer' =>'referer',
  432. 'visites' =>'visites',
  433. 'visites_jour' =>'visites_jour',
  434. 'maj' =>'maj'
  435. );
  436.  
  437.  
  438. // -------------------------------
  439. // spip_referers_articles
  440. // -------------------------------
  441.  
  442. $spip_referers_articles = array(
  443. 'id_article' =>'id_article',
  444. 'referer_md5' =>'referer_md5',
  445. 'date_heure' =>'date',
  446. 'referer' =>'referer',
  447. 'visites' =>'visites',
  448. 'maj' =>'maj'
  449. );
  450.  
  451.  
  452.  
  453. // -------------------------------
  454. // spip_signatures
  455. // checked dec 12
  456. // -------------------------------
  457.  
  458. $spip_signatures = array(
  459. 'id_signature' =>'id_signature',
  460. 'id_article' =>'id_article',
  461. 'date_time' =>'date_time',
  462. 'nom_email' =>'nom_email',
  463. 'ad_email' =>'ad_email',
  464. 'nom_site' =>'nom_site',
  465. 'url_site' =>'url_site',
  466. 'message' =>'message',
  467. 'statut' =>'statut',
  468. 'maj' =>'maj'
  469. );
  470.  
  471. /*
  472. skipped, not in agora
  473. // -------------------------------
  474. // spip_syndic
  475. // -------------------------------
  476. $spip_syndic = array(
  477. 'id_syndic' =>'id_syndic',
  478. 'id_rubrique' =>'id_rubrique',
  479. 'id_secteur' =>'id_secteur',
  480. 'nom_site' =>'nom_site',
  481. 'url_site' =>'url_site',
  482. 'url_syndic' =>'url_syndic',
  483. 'descriptif' =>'descriptif',
  484. 'url_propre' =>'url_propre',
  485. 'idx' =>'idx',
  486. 'maj' =>'maj',
  487. 'syndication' =>'syndication',
  488. 'statut' =>'statut',
  489. 'date' =>'date',
  490. 'date_syndic' =>'date_syndic',
  491. 'date_index' =>'date_index',
  492. 'extra' =>'extra',
  493. 'moderation' =>'moderation',
  494. 'miroir' =>'miroir',
  495. 'oubli' =>'oubli',
  496. 'resume' =>'resume'
  497. );
  498. */
  499.  
  500. // -------------------------------
  501. // spip_syndic_articles
  502. // checked dec 12
  503. // -------------------------------
  504.  
  505. $spip_syndic_articles = array(
  506. 'id_syndic_article' =>'id_syndic_article',
  507. 'id_syndic' =>'id_syndic',
  508. 'titre' =>'titre',
  509. 'url' =>'url',
  510. 'date_heure' =>'date',
  511. 'lesauteurs' =>'lesauteurs',
  512. 'maj' =>'maj',
  513. 'statut' =>'statut',
  514. 'descriptif' =>'descriptif'
  515. );
  516.  
  517.  
  518. // -------------------------------
  519. // spip_types_documents
  520. // convert IDs
  521. // checked dec 12
  522. // -------------------------------
  523.  
  524. $spip_types_documents = array(
  525. 'id_type' =>'id_type',
  526. 'titre' =>'titre',
  527. 'descriptif' =>'descriptif',
  528. 'extension' =>'extension',
  529. 'mime_type' =>'mime_type',
  530. 'inclus' =>'inclus',
  531. 'upload' =>'upload',
  532. 'maj' =>'maj'
  533. );
  534.  
  535. /*
  536. skipped, not in agora
  537. // -------------------------------
  538. // spip_versions
  539. // -------------------------------
  540. $spip_versions = array(
  541. 'id_article' =>'id_article',
  542. 'id_version' =>'id_version',
  543. 'date' =>'date',
  544. 'id_auteur' =>'id_auteur',
  545. 'titre_version' =>'titre_version',
  546. 'permanent' =>'permanent',
  547. 'champs' =>'champs'
  548. );
  549.  
  550.  
  551. // -------------------------------
  552. // spip_versions_fragments
  553. // -------------------------------
  554. $spip_versions_fragments = array(
  555. 'id_fragment' =>'id_fragment',
  556. 'version_min' =>'version_min',
  557. 'version_max' =>'version_max',
  558. 'id_article' =>'id_article',
  559. 'compress' =>'compress',
  560. 'fragment' =>'fragment'
  561. );
  562. */
  563.  
  564. // -------------------------------
  565. // spip_visites
  566. // checked dec 12
  567. // -------------------------------
  568.  
  569. $spip_visites = array(
  570. 'date_heure' =>'date',
  571. 'visites' =>'visites',
  572. 'maj' =>'maj'
  573. );
  574.  
  575.  
  576. // -------------------------------
  577. // spip_visites_articles
  578. // checked dec 12
  579. // -------------------------------
  580.  
  581. $spip_visites_articles = array(
  582. 'date_heure' =>'date',
  583. 'id_article' =>'id_article',
  584. 'visites' =>'visites',
  585. 'maj' =>'maj'
  586. );
  587.  
  588. // ----------------------------------------
  589. // table to migrate
  590. // ----------------------------------------
  591.  
  592.  
  593.  
  594. $table_to_migrate = array(
  595. 1 => array('from' => 'spip_rubriques',
  596. 'to' => 'spip_rubriques',
  597. 'field' => $spip_rubriques
  598. ),
  599. 2 => array('from' => 'spip_articles',
  600. 'to' => 'spip_articles',
  601. 'field' => $spip_articles
  602. ),
  603.  
  604. 3 => array('from' => 'spip_auteurs',
  605. 'to' => 'spip_auteurs',
  606. 'field' => $spip_auteurs
  607. ),
  608.  
  609. 4 => array('from' => 'spip_auteurs_messages',
  610. 'to' => 'spip_auteurs_messages',
  611. 'field' => $spip_auteurs_messages
  612. ),
  613.  
  614. 5 => array('from' => 'spip_auteurs_articles',
  615. 'to' => 'spip_auteurs_articles',
  616. 'field' => $spip_auteurs_articles
  617. ),
  618.  
  619. 6 => array('from' => 'spip_auteurs_rubriques',
  620. 'to' => 'spip_auteurs_rubriques',
  621. 'field' => $spip_auteurs_rubriques
  622. ),
  623.  
  624. 7 => array('from' => 'spip_breves',
  625. 'to' => 'spip_breves',
  626. 'field' => $spip_breves
  627. ),
  628.  
  629. 8 => array('from' => 'spip_documents',
  630. 'to' => 'spip_documents',
  631. 'field' => $spip_documents
  632. ),
  633.  
  634. 9 => array('from' => 'spip_documents_articles',
  635. 'to' => 'spip_documents_articles',
  636. 'field' => $spip_documents_articles
  637. ),
  638.  
  639. 10 => array('from' => 'spip_documents_breves',
  640. 'to' => 'spip_documents_breves',
  641. 'field' => $spip_documents_breves
  642. ),
  643.  
  644. 11 => array('from' => 'spip_documents_rubriques',
  645. 'to' => 'spip_documents_rubriques',
  646. 'field' => $spip_documents_rubriques
  647. ),
  648.  
  649. 12 => array('from' => 'spip_forum',
  650. 'to' => 'spip_forum',
  651. 'field' => $spip_forum
  652. ),
  653.  
  654. 13 => array('from' => 'spip_groupes_mots',
  655. 'to' => 'spip_groupes_mots',
  656. 'field' => $spip_groupes_mots
  657. ),
  658.  
  659. 14 => array('from' => 'spip_petitions',
  660. 'to' => 'spip_petitions',
  661. 'field' => $spip_petitions
  662. ),
  663.  
  664. 15 => array('from' => 'spip_referers',
  665. 'to' => 'spip_referers',
  666. 'field' => $spip_referers
  667. ),
  668.  
  669. 16 => array('from' => 'spip_referers_articles',
  670. 'to' => 'spip_referers_articles',
  671. 'field' => $spip_referers_articles
  672. ),
  673.  
  674. 17 => array('from' => 'spip_signatures',
  675. 'to' => 'spip_signatures',
  676. 'field' => $spip_signatures
  677. ),
  678.  
  679. 18 => array('from' => 'spip_syndic_articles',
  680. 'to' => 'spip_syndic_articles',
  681. 'field' => $spip_syndic_articles
  682. ),
  683.  
  684. 19 => array('from' => 'spip_visites',
  685. 'to' => 'spip_visites',
  686. 'field' => $spip_visites
  687. )
  688.  
  689. );
  690.  
  691. // ----------------------------------------
  692. // Option surcharge du nom de la table spip auteurs
  693. // ----------------------------------------
  694.  
  695. $spip_auteurs_source = 'spip_auteurs';
  696. $spip_auteurs_target = 'spip_auteurs';
  697.  
  698. // ----------------------------------------
  699. // Conversion statuts auteurs, choix des position
  700. // ----------------------------------------
  701.  
  702. $statut_auteur = array(
  703. 2 => '1comite',
  704. 4 => '1comite',
  705. 8 => '0minirezo',
  706. 16 => '0minirezo'
  707. );
  708.  
  709. ?>

Documentation generated on Mon, 31 Mar 2008 18:08:43 +0200 by phpDocumentor 1.3.0RC3