本文整理汇总了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.';
}
}
}
示例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;
示例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;
示例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);
}
示例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'];
示例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()
示例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()
示例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;
示例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;
示例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');
示例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()
示例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()
{
示例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;
示例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;
示例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();
}