From b99d1f5af1f73c73f639a62c095d34754aca0312 Mon Sep 17 00:00:00 2001
From: Christian Lefebvre <christian_lefebvre@laposte.net>
Date: Fri, 3 Aug 2007 21:42:44 +0000
Subject: [PATCH] autodoc

---
 ecrire/base/abstract_sql.php | 1 +
 ecrire/base/db_mysql.php     | 1 +
 ecrire/base/db_pg.php        | 1 +
 ecrire/base/optimiser.php    | 4 ++++
 4 files changed, 7 insertions(+)

diff --git a/ecrire/base/abstract_sql.php b/ecrire/base/abstract_sql.php
index 6ea0fc5fea..9ce4614e33 100644
--- a/ecrire/base/abstract_sql.php
+++ b/ecrire/base/abstract_sql.php
@@ -149,6 +149,7 @@ $sousrequete, $having, $table, $id, $serveur),
 }
 
 # une composition tellement frequente...
+// http://doc.spip.org/@spip_abstract_countsel
 function spip_abstract_countsel($from = array(), $where = array(),
 	$groupby = '', $limit = '', $sousrequete = '', $having = array(),
 	$serveur='') {
diff --git a/ecrire/base/db_mysql.php b/ecrire/base/db_mysql.php
index bae1b700b2..033a56eefa 100644
--- a/ecrire/base/db_mysql.php
+++ b/ecrire/base/db_mysql.php
@@ -392,6 +392,7 @@ function spip_fetch_array($r, $t=SPIP_ASSOC) {
 	if ($r) return mysql_fetch_array($r, $t);
 }
 
+// http://doc.spip.org/@spip_mysql_countsel
 function spip_mysql_countsel($from = array(), $where = array(),
 	$groupby = '', $limit = '', $sousrequete = '', $having = array())
 {
diff --git a/ecrire/base/db_pg.php b/ecrire/base/db_pg.php
index a32adaf6f1..227215231c 100644
--- a/ecrire/base/db_pg.php
+++ b/ecrire/base/db_pg.php
@@ -178,6 +178,7 @@ function spip_fetch_array($r, $extra='') {
 	  if ($r) return pg_fetch_array($r);
 }
 
+// http://doc.spip.org/@spip_pg_countsel
 function spip_pg_countsel($from = array(), $where = array(),
 	$groupby='', $limit='', $sousrequete = '', $having = array())
 {
diff --git a/ecrire/base/optimiser.php b/ecrire/base/optimiser.php
index 7257ee4bf6..ceb4b89572 100644
--- a/ecrire/base/optimiser.php
+++ b/ecrire/base/optimiser.php
@@ -27,6 +27,7 @@ function optimiser_base($attente = 86400) {
 	// MySQL
 	//
 
+// http://doc.spip.org/@optimiser_base_une_table
 function optimiser_base_une_table() {
 
 	if ($GLOBALS['table_prefix']) $table_pref = $GLOBALS['table_prefix']."_";
@@ -60,6 +61,7 @@ function optimiser_base_une_table() {
 // Utilitaire exploitant le SELECT et appliquant DELETE
 // L'index du SELECT doit s'appeler "id"
 
+// http://doc.spip.org/@optimiser_sansref
 function optimiser_sansref($table, $id, $sel)
 {
 	$in = array();
@@ -78,6 +80,7 @@ function optimiser_sansref($table, $id, $sel)
 // Maintenant que MySQL 5 a des Cascades on pourrait faire autrement
 // mais on garde la compatibilite avec les versions precedentes.
 
+// http://doc.spip.org/@optimiser_base_disparus
 function optimiser_base_disparus($attente = 86400) {
 
 	# format = 20060610110141, si on veut forcer une optimisation tout de suite
@@ -394,6 +397,7 @@ function optimiser_base_disparus($attente = 86400) {
 }
 
 
+// http://doc.spip.org/@optimiser_base_indexation
 function optimiser_base_indexation($attente) {
 	// les objets inutiles
 	include_spip('inc/indexation');
-- 
GitLab