當前位置: 首頁>>代碼示例>>PHP>>正文


PHP require_model函數代碼示例

本文整理匯總了PHP中require_model函數的典型用法代碼示例。如果您正苦於以下問題:PHP require_model函數的具體用法?PHP require_model怎麽用?PHP require_model使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了require_model函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: remote_printer

/**
 * Vuelca en la salida estándar el buffer de tickets pendientes de imprimir.
 */
function remote_printer()
{
    if (isset($_REQUEST['terminal'])) {
        require_model('terminal_caja.php');
        $t0 = new terminal_caja();
        $terminal = $t0->get($_REQUEST['terminal']);
        if ($terminal) {
            echo $terminal->tickets;
            $terminal->tickets = '';
            $terminal->save();
        } else {
            echo 'ERROR: terminal no encontrado.';
        }
    }
}
開發者ID:pcrednet,項目名稱:facturacion_base,代碼行數:18,代碼來源:functions.php

示例2: require_model

 * Copyright (C) 2015-2016  Carlos Garcia Gomez  neorazorx@gmail.com
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
require_model('inme_fuente.php');
/**
 * Description of inme_noticia_fuente
 *
 * @author carlos
 */
class inme_noticia_fuente extends fs_model
{
    public $id;
    public $id_relacionada;
    public $url;
    public $titulo;
    public $texto;
    public $resumen;
    public $fecha;
    public $publicada;
開發者ID:NeoRazorX,項目名稱:informame,代碼行數:31,代碼來源:inme_noticia_fuente.php

示例3: require_model

 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 * 
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * @author Valentin
 */
//require_model('agente.php');
require_model('cliente.php');
require_model('maquinas.php');
//require_model('cuenta_banco_cliente.php');
//require_model('direccion_cliente.php');
//require_model('divisa.php');
//equire_model('forma_pago.php');
//require_model('grupo_clientes.php');
//require_model('pais.php');
//require_model('serie.php');
class listado_maquinas_cliente extends fs_controller
{
    //public $agente;
    public $allow_delete;
    public $cliente;
    // public $cuenta_banco;
    // public $grupo;
    //public $pais;
開發者ID:TinonDKV,項目名稱:control_maquinas,代碼行數:31,代碼來源:listado_maquinas_cliente.php

示例4: require_model

 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 * 
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
require_model('agente.php');
require_model('articulo.php');
require_model('proveedor.php');
require_model('tarifas_proveedores.php');
class tarifas_proveedor extends fs_controller
{
    public $agente;
    public $articulos;
    public $offset;
    public $proveedor;
    public $tarifas_all;
    public $tarifas_select;
    public $tarifas;
    public $allow_delete;
    public $articulo_s;
    public function __construct()
    {
        parent::__construct(__CLASS__, 'Tarifas de proveedor', 'compras', FALSE, FALSE);
    }
開發者ID:shawe,項目名稱:tarifas_proveedor,代碼行數:31,代碼來源:tarifas_proveedor.php

示例5: require_model

 * Copyright (C) 2014-2016  Carlos Garcia Gomez  neorazorx@gmail.com
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 * 
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
require_model('agente.php');
class admin_agentes extends fs_controller
{
    public $agente;
    public function __construct()
    {
        parent::__construct(__CLASS__, 'Empleados', 'admin', TRUE, TRUE);
    }
    protected function private_core()
    {
        $this->agente = new agente();
        if (isset($_POST['sdnicif'])) {
            $age0 = new agente();
            $age0->codagente = $age0->get_new_codigo();
            $age0->nombre = $_POST['snombre'];
            $age0->apellidos = $_POST['sapellidos'];
開發者ID:desalort,項目名稱:FSAutoventas,代碼行數:31,代碼來源:admin_agentes.php

示例6: require_model

 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 * 
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * 
 */
require_model('proveedor_sms.php');
require_model('cliente.php');
require_model('servicio_cliente.php');
require_model('pedido_cliente.php');
require_model('detalle_servicio.php');
/**
 * Description of enviar_sms
 *
 * @author luismi
 */
class enviar_sms extends fs_controller
{
    public $cliente;
    public $documento;
    public $documento_url;
    public $id;
    public $mensaje;
    public $provsms;
    public $telefono;
    public function __construct()
開發者ID:pcrednet,項目名稱:sms,代碼行數:31,代碼來源:enviar_sms.php

示例7: require_model

 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 * 
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
require_once 'plugins/facturacion_base/extras/fs_pdf.php';
require_once 'extras/phpmailer/class.phpmailer.php';
require_once 'extras/phpmailer/class.smtp.php';
require_model('cliente.php');
require_model('cuenta_banco.php');
require_model('cuenta_banco_cliente.php');
require_model('forma_pago.php');
/**
 * Esta clase agrupa los procedimientos de imprimir/enviar albaranes y facturas.
 */
class ventas_imprimir extends fs_controller
{
    public $albaran;
    public $cliente;
    public $factura;
    public $impresion;
    public $impuesto;
    public function __construct()
    {
        parent::__construct(__CLASS__, 'imprimir', 'ventas', FALSE, FALSE);
    }
    protected function process()
開發者ID:ramikat,項目名稱:ERPSISFS,代碼行數:31,代碼來源:ventas_imprimir.php

示例8: require_model

 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
require_model('almacen.php');
require_model('articulo.php');
require_model('cliente.php');
require_model('dircliente.php');
require_model('distribucion_clientes.php');
require_model('distribucion_rutas.php');
require_model('distribucion_segmentos.php');
require_model('cliente_ruta.php');
require_model('unidadmedida.php');
require_model('articulo_unidadmedida.php');
/**
 * Description of distribucion_venta
 *
 * @author Joe Nilson <joenilson at gmail.com>
 */
class distribucion_venta extends fs_controller
{
    public $almacen;
    public $codalmacen;
    public $rutas_almacen;
    public $total_rutas_almacen;
    public $distribucion_clientes;
    public $distribucion_rutas;
    public $distribucion_segmentos;
    public $fecha_pedido;
開發者ID:joenilson,項目名稱:distribucion,代碼行數:31,代碼來源:distribucion_venta.php

示例9: require_model

 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 * 
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
require_model('articulo.php');
require_model('asiento.php');
require_model('caja.php');
require_model('divisa.php');
require_model('ejercicio.php');
require_model('impuesto.php');
require_model('subcuenta.php');
require_model('factura_proveedor.php');
require_model('pago_por_caja.php');
require_model('partida.php');
require_once 'plugins/facturacion_base/extras/libromayor.php';
class contabilidad_asiento extends fs_controller
{
    public $allow_delete;
    /**
     * @var asiento
     */
    public $asiento;
    public $divisa;
    public $ejercicio;
    public $impuesto;
    public $lineas;
    public $resultados;
    public $subcuenta;
    public $resultados1;
開發者ID:CruzeroGroup2,項目名稱:facturacion_base,代碼行數:31,代碼來源:contabilidad_asiento.php

示例10: require_model

 * Copyright (C) 2015-2016  Carlos Garcia Gomez  neorazorx@gmail.com
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
require_model('inme_tema.php');
/**
 * Description of informame_temas
 *
 * @author carlos
 */
class inme_temas extends fs_controller
{
    public $offset;
    public $orden;
    public $num_resultados;
    public $resultados;
    public $tema;
    public function __construct()
    {
        parent::__construct(__CLASS__, 'Temas', 'informame');
開發者ID:NeoRazorX,項目名稱:informame,代碼行數:31,代碼來源:inme_temas.php

示例11: require_model

 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 * 
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
require_once 'plugins/facturacion_base/extras/fs_pdf.php';
require_once 'extras/phpmailer/class.phpmailer.php';
require_once 'extras/phpmailer/class.smtp.php';
require_model('cliente.php');
require_model('impuesto.php');
require_model('servicio_cliente.php');
/**
 * Esta clase agrupa los procedimientos de imprimir/enviar presupuestos y servicios.
 */
class imprimir_servicio extends fs_controller
{
    public $cliente;
    public $impresion;
    public $impuesto;
    public $servicio;
    public $st;
    public function __construct()
    {
        parent::__construct(__CLASS__, 'imprimir', 'ventas', FALSE, FALSE);
    }
    protected function private_core()
開發者ID:Apvilchez,項目名稱:servicios,代碼行數:31,代碼來源:imprimir_servicio.php

示例12: require_model

 *  * published by the Free Software Foundation, either version 3 of the
 *  * License, or (at your option) any later version.
 *  *
 *  * This program is distributed in the hope that it will be useful,
 *  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See th * e
 *  * GNU Affero General Public License for more details.
 *  * 
 *  * You should have received a copy of the GNU Affero General Public License
 *  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
require_model('almacen.php');
require_model('pais.php');
require_model('agencia_transporte.php');
require_model('distribucion_tipounidad.php');
require_model('distribucion_unidades.php');
/**
 * Description of distribucion_unidades
 *
 * @author Joe Nilson <joenilson@gmail.com>
 */
class distrib_unidades extends fs_controller
{
    public $almacen;
    public $pais;
    public $agencia_transporte;
    public $distribucion_tipounidad;
    public $distribucion_unidades;
    public $listado;
    public function __construct()
    {
開發者ID:joenilson,項目名稱:distribucion,代碼行數:31,代碼來源:distrib_unidades.php

示例13: require_model

 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 * 
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
require_model('cuenta.php');
require_model('direccion_proveedor.php');
require_model('subcuenta.php');
require_model('subcuenta_proveedor.php');
/**
 * Un proveedor. Puede estar relacionado con varias direcciones o subcuentas.
 */
class proveedor extends fs_model
{
    /**
     * Clave primaria. Varchar (6).
     * @var type 
     */
    public $codproveedor;
    /**
     * Nombre por el que se conoce al proveedor, puede ser el nombre oficial o no.
     * @var type 
     */
    public $nombre;
開發者ID:CruzeroGroup2,項目名稱:facturacion_base,代碼行數:31,代碼來源:proveedor.php

示例14: require_model

 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 * 
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
require_model('agente.php');
require_model('articulo.php');
require_model('cliente.php');
require_model('factura_cliente.php');
class ventas_facturas extends fs_controller
{
    public $agente;
    public $articulo;
    public $buscar_lineas;
    public $cliente;
    public $codagente;
    public $codserie;
    public $desde;
    public $factura;
    public $hasta;
    public $huecos;
    public $lineas;
    public $mostrar;
    public $num_resultados;
開發者ID:vamoros,項目名稱:facturacion_base,代碼行數:31,代碼來源:ventas_facturas.php

示例15: require_model

 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 * 
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
require_model('ejercicio.php');
require_once 'plugins/facturacion_base/extras/inventarios_balances.php';
require_model('subcuenta.php');
require_model('recibo_proveedor.php');
class informe_contabilidad extends fs_controller
{
    public $ejercicio;
    public function __construct()
    {
        parent::__construct(__CLASS__, 'Contabilidad', 'informes', FALSE, TRUE);
    }
    protected function private_core()
    {
        $this->subcuenta = new subcuenta();
        $this->ejercicio = new ejercicio();
        $this->ppage = $this->page->get('libro_mayor_generar');
        if (isset($_REQUEST['buscar_subcuenta'])) {
            $this->buscar_subcuenta();
        }
開發者ID:CruzeroGroup2,項目名稱:facturacion_base,代碼行數:31,代碼來源:informe_contabilidad.php


注:本文中的require_model函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。