Formatting code for Datav3


show source only

[[AlmidonDocv3 Documentación Almidón v3]]
----
""<!--Inicio Menu--><div style="float: right; width: 200px; border: 1px solid #666666; padding: 6px;margin-left: 10px; background-color:#fff;">
<h5 style="font-weight: normal; font-size: 11px; margin:0px; padding:0px; margin-bottom: 12px; ">Contenido Documentación<h5>
<ol style="margin:0px; padding-top:0px; padding-bottom:0px; padding-right:0px; padding-left: 20px; font-weight: normal;">
<li style="font-size: 11px; ">Núcleo (db3)
<ul style="margin:0px; padding:0px; padding-left:16px;">
<li style="font-size: 11px;"><a href="/ConstAlm">Constantes</a></li>
<li style="font-size: 11px; "><a href="/ClassAlm">Clases</a></li>
</ul>
</li>
<li style="font-size: 11px;">Plugins de Smarty
<ul style="margin:0px; padding:0px; padding-left:16px;">
<li style="font-size: 11px;">
Funciones
<ul style="margin:0px; padding:0px; padding-left:16px;">
<li style="font-size: 11px;"><a href="/FunctionCalendar">calendar</a></li>
<li style="font-size: 11px;">include_video_service</li>
<li style="font-size: 11px;">count</li>
<li style="font-size: 11px;">mini_calendar</li>
<li style="font-size: 11px;">dataform</li>
<li style="font-size: 11px;">dataform2</li>
<li style="font-size: 11px;">recaptcha</li>
<li style="font-size: 11px;">datagrid</li>
<li style="font-size: 11px;">datagrid2</li>
<li style="font-size: 11px;">dataform</li>
<li style="font-size: 11px;">datareport</li>
<li style="font-size: 11px;">Validate</li>
</ul>
</li>
<li style="font-size: 11px; ">Modificadores</li>
</ul>
</li>
</ol>
</div><!--Fin Menu-->""
""<div style="color: #ffffff; background-color: #666666; padding:4px; padding-top: 8px; padding-bottom: 8px; font-size: 16px; margin-top: 2px; margin-right: 10px; ">Clase: <u>Data</u></div>
<style> a.opcion { text-decoration: none; } a.opcion:hover { text-decoration: underline; } </style>""
Clase padre de Table, contiene los principales métodos para manipulación de las consultas a la base de datos, es una abstración de las principales operación de consulta y ejecución de comandos SQL, provee un primer nivel de API.

__Variables__
- {{anchor target="database" text="$database" }}
- {{anchor target="limit" text="$limit"}}
- {{anchor target="offset" text="$offset"}}
- {{anchor target="key" text="$key"}}

__Métodos__
- {{anchor target="Data" text="Data"}}
- {{anchor target="check_error" text="check_error"}}
- {{anchor target="sql_log" text="sql_log"}}
- {{anchor target="query" text="query"}}
- {{anchor target="execSql" text="execSql"}}
- {{anchor target="getVar" text="getVar"}}
- {{anchor target="getList" text="getList"}}
- {{anchor target="getArray" text="getArray"}}
- {{anchor target="selectList" text="selectList"}}
- {{anchor target="selectMenu" text="selectMenu"}}
- {{anchor target="getNumbering" text="getNumbering"}}

====Variables de la Clase====
{{anchor name="database" title="Variable: database"}}
**$database**
Tipo: object
Es una instancia de la Clase [[http://pear.php.net/package/DB PEAR DB]] que establece una conexión con la base de datos.

[{{anchor target="top" text="arriba" }}]
{{anchor name="limit" title="Variable: limit"}}
**$limit**
Tipo: integer
Es un entero que controla la cantidad de registros que se devolveran en una consulta (SELECT).

[{{anchor target="top" text="arriba" }}]
{{anchor name="offset" title="Variable: offset"}}
**$offset**
Tipo: integer
Es un entero que determina el numero de registro inicial.

[{{anchor target="top" text="arriba" }}]
{{anchor name="key" title="Variable: key"}}
**$key**
Tipo: integer
El nombre del campo que es llave primaria en la tabla.

[{{anchor target="top" text="arriba" }}]

====Métodos de la Clase====
{{anchor name="Data" title="Método: Data"}}
{{color fg="red" text="void"}} **Data()**
valor de retorno: void
parametros:
- ninguno.

//Constructor de la clase y quien establece o inicializa la conexión con la base de datos.//

[{{anchor target="top" text="arriba" }}]
{{anchor name="check_error" title="Método: check_error"}}
{{color fg="red" text="void"}} **check_error(**{{color fg="green" text="$obj, $extra = '', $die = false"}}**)**
valor de retorno: void
parametros:
- object $obj
- $extra
- boolean $die

//Manejo de los errores y el registro de los mismos en los logs.//

[{{anchor target="top" text="arriba" }}]
{{anchor name="sql_log" title="Método: sql_log"}}
{{color fg="red" text="void"}} **sql_log(**{{color fg="green" text="$logtext"}}**)**
valor de retorno: void
parametros:
- string $logtext

//Registra en el archivo de los logs SQL las consultas SQL generadas.//

[{{anchor target="top" text="arriba" }}]
{{anchor name="query" title="Método: query"}}
{{color fg="red" text="object"}} **query(**{{color fg="green" text="$sqlcmd"}}**)**
valor de retorno: object (result)
parametros:
- string $sqlcmd

//Ejecuta una consulta SQL (SELECT, UPDATE, DELETE o INSERT) y devuelve, dependiendo la consulta proporcionada, un result con el resultado de la misma en caso que sea una consulta SELECT.//

[{{anchor target="top" text="arriba" }}]
{{anchor name="execSql" title="Método: execSql"}}
{{color fg="red" text="object"}} **execSql(**{{color fg="green" text="$sqlcmd"}}**)**
valor de retorno: object (result)
parametros:
- string $sqlcmd

//Ejecuta una consulta SQL, es utilizada preferiblemente cuando se utilizan consultas SELECT.//

[{{anchor target="top" text="arriba" }}]
{{anchor name="getVar" title="Método: getVar"}}
{{color fg="red" text="object"}} **getVar(**{{color fg="green" text="$sqlcmd"}}**)**
valor de retorno: object
parametros:
- string $sqlcmd

//Permite ejecutar una consulta a la base de datos y devolver un unico valor que representa al valor colocado en el primer campo de la primera fila.//

[{{anchor target="top" text="arriba" }}]
{{anchor name="getList" title="Método: getList"}}
{{color fg="red" text="array"}} **getList(**{{color fg="green" text="$sqlcmd"}}**)**
valor de retorno: array
parametros:
- string $sqlcmd

[{{anchor target="top" text="arriba" }}]
{{anchor name="getArray" title="Método: getArray"}}
{{color fg="red" text="array"}} **getArray()**
valor de retorno: array
parametros:
- ninguno

[{{anchor target="top" text="arriba" }}]
{{anchor name="selectList" title="Método: selectList"}}
{{color fg="red" text="array"}} **selectList(**{{color fg="green" text="$sqlcmd"}}**)**
valor de retorno: array
parametros:
- string $sqlcmd

[{{anchor target="top" text="arriba" }}]
{{anchor name="selectMenu" title="Método: selectMenu"}}
{{color fg="red" text="array"}} **selectMenu(**{{color fg="green" text="$sqlcmd = '', $filter = ''"}}**)**
valor de retorno: array
parametros:
- string $sqlcmd
- string $filter

[{{anchor target="top" text="arriba" }}]
{{anchor name="getNumbering" title="Método: getNumbering"}}
{{color fg="red" text="int"}} **getNumbering()**
valor de retorno: integer
parametros:
- ninguno

[{{anchor target="top" text="arriba" }}]
::c::

----
CategoryDocumentationv3
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki