本文整理汇总了PHP中fs_extension类的典型用法代码示例。如果您正苦于以下问题:PHP fs_extension类的具体用法?PHP fs_extension怎么用?PHP fs_extension使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了fs_extension类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: share_extensions
private function share_extensions()
{
if ($this->page->get('cuentas_articulo')) {
$fsext = new fs_extension(array('name' => 'cuentas_articulo', 'page_from' => 'cuentas_articulo', 'page_to' => 'ventas_articulo', 'type' => 'tab', 'text' => 'Cuentas', 'params' => '&action=edit'));
$fsext->save();
}
}
示例2: share_extension
private function share_extension()
{
$extensiones = array(array('name' => 'documentos_facturascli', 'page_from' => __CLASS__, 'page_to' => 'ventas_factura', 'type' => 'tab', 'text' => '<span class="glyphicon glyphicon-file" aria-hidden="true" title="Documentos"></span>', 'params' => '&folder=facturascli'), array('name' => 'documentos_facturasprov', 'page_from' => __CLASS__, 'page_to' => 'compras_factura', 'type' => 'tab', 'text' => '<span class="glyphicon glyphicon-file" aria-hidden="true" title="Documentos"></span>', 'params' => '&folder=facturasprov'));
foreach ($extensiones as $ext) {
$fsext = new fs_extension($ext);
$fsext->save();
}
}
示例3: shared_extensions
public function shared_extensions()
{
$extensiones = array(array('name' => 'articulos_unidadesmedida', 'page_from' => __CLASS__, 'page_to' => 'ventas_articulos', 'type' => 'button', 'text' => '<span class="fa fa-cubes"></span> Unidades de Medida', 'params' => ''));
foreach ($extensiones as $ext) {
$fsext0 = new fs_extension($ext);
if (!$fsext0->save()) {
$this->new_error_msg('Imposible guardar los datos de la extensión ' . $ext['name'] . '.');
}
}
}
示例4: share_extension
private function share_extension()
{
$fsext = new fs_extension();
$fsext->name = 'opciones_fac_detallada';
$fsext->from = __CLASS__;
$fsext->to = 'admin_empresa';
$fsext->type = 'button';
$fsext->text = '<span class="glyphicon glyphicon-print" aria-hidden="true"></span> Factura Detallada';
$fsext->save();
}
示例5: share_extensions
private function share_extensions()
{
$extensiones = array(array('name' => 'imprimir_pedido', 'page_from' => __CLASS__, 'page_to' => 'ventas_pedido', 'type' => 'pdf', 'text' => ucfirst(FS_PEDIDO) . ' simple', 'params' => '&pedido=TRUE'), array('name' => 'email_pedido', 'page_from' => __CLASS__, 'page_to' => 'ventas_pedido', 'type' => 'email', 'text' => ucfirst(FS_PEDIDO) . ' simple', 'params' => '&pedido=TRUE'), array('name' => 'imprimir_presupuesto', 'page_from' => __CLASS__, 'page_to' => 'ventas_presupuesto', 'type' => 'pdf', 'text' => ucfirst(FS_PRESUPUESTO) . ' simple', 'params' => '&presupuesto=TRUE'), array('name' => 'email_presupuesto', 'page_from' => __CLASS__, 'page_to' => 'ventas_presupuesto', 'type' => 'email', 'text' => ucfirst(FS_PRESUPUESTO) . ' simple', 'params' => '&presupuesto=TRUE'));
foreach ($extensiones as $ext) {
$fsext = new fs_extension($ext);
if (!$fsext->save()) {
$this->new_error_msg('Error al guardar la extensión ' . $ext['name']);
}
}
}
示例6: share_extension
private function share_extension()
{
$fsext = new fs_extension();
$fsext->name = 'imprimir_ticket';
$fsext->from = __CLASS__;
$fsext->to = 'ventas_servicio';
$fsext->type = 'pdf';
$fsext->text = 'Ticket ' . FS_SERVICIO;
$fsext->save();
}
示例7: share_extension
private function share_extension()
{
$fsext = new fs_extension();
$fsext->name = __CLASS__;
$fsext->from = __CLASS__;
$fsext->to = 'ventas_pedidos';
$fsext->type = 'button';
$fsext->text = '<span class="glyphicon glyphicon-duplicate"></span>' . '<span class="hidden-xs"> Agrupar</span>';
$fsext->save();
}
示例8: share_extensions
public function share_extensions()
{
$fsxet = new fs_extension();
$fsxet->name = 'tab_ventas_cliente_articulos';
$fsxet->from = __CLASS__;
$fsxet->to = 'ventas_cliente';
$fsxet->type = 'tab';
$fsxet->text = '<span class="glyphicon glyphicon-list" aria-hidden="true"></span> Artículos';
$fsxet->save();
}
示例9: share_extensions
private function share_extensions()
{
$extensiones = array(array('name' => 'imprimir_servicio', 'page_from' => __CLASS__, 'page_to' => 'ventas_servicio', 'type' => 'pdf', 'text' => ucfirst(FS_SERVICIO) . ' simple', 'params' => ''), array('name' => 'email_servicio', 'page_from' => __CLASS__, 'page_to' => 'ventas_servicio', 'type' => 'email', 'text' => ucfirst(FS_SERVICIO) . ' simple', 'params' => ''));
foreach ($extensiones as $ext) {
$fsext = new fs_extension($ext);
if (!$fsext->save()) {
$this->new_error_msg('Error al guardar la extensión ' . $ext['name']);
}
}
}
示例10: share_extensions
private function share_extensions()
{
$extensiones = array(array('name' => 'imprimir_servicio_sin_detalles_horizontal', 'page_from' => __CLASS__, 'page_to' => 'ventas_servicio', 'type' => 'pdf', 'text' => '2 ' . ucfirst(FS_SERVICIO) . ' sin líneas en 1 página', 'params' => ''));
foreach ($extensiones as $ext) {
$fsext = new fs_extension($ext);
if (!$fsext->save()) {
$this->new_error_msg('Error al guardar la extensión ' . $ext['name']);
}
}
}
示例11: share_extensions
private function share_extensions()
{
$extensiones = array(array('name' => 'imprimir_albaran', 'page_from' => __CLASS__, 'page_to' => 'ventas_albaran', 'type' => 'pdf', 'text' => ucfirst(FS_ALBARAN) . ' simple', 'params' => '&albaran=TRUE'), array('name' => 'email_albaran', 'page_from' => __CLASS__, 'page_to' => 'ventas_albaran', 'type' => 'email', 'text' => ucfirst(FS_ALBARAN) . ' simple', 'params' => '&albaran=TRUE'), array('name' => 'imprimir_factura', 'page_from' => __CLASS__, 'page_to' => 'ventas_factura', 'type' => 'pdf', 'text' => ucfirst(FS_FACTURA) . ' simple', 'params' => '&factura=TRUE&tipo=simple'), array('name' => 'imprimir_factura_firma', 'page_from' => __CLASS__, 'page_to' => 'ventas_factura', 'type' => 'pdf', 'text' => ucfirst(FS_FACTURA) . ' con firma', 'params' => '&factura=TRUE&tipo=firma'), array('name' => 'imprimir_factura_carta', 'page_from' => __CLASS__, 'page_to' => 'ventas_factura', 'type' => 'pdf', 'text' => 'Modelo carta', 'params' => '&factura=TRUE&tipo=carta'), array('name' => 'email_factura', 'page_from' => __CLASS__, 'page_to' => 'ventas_factura', 'type' => 'email', 'text' => ucfirst(FS_FACTURA) . ' simple', 'params' => '&factura=TRUE&tipo=simple'));
foreach ($extensiones as $ext) {
$fsext = new fs_extension($ext);
if (!$fsext->save()) {
$this->new_error_msg('Error al guardar la extensión ' . $ext['name']);
}
}
}
示例12: share_extensions
private function share_extensions()
{
$extensiones = array(array('name' => 'imprimir_albaran_proveedor', 'page_from' => __CLASS__, 'page_to' => 'compras_albaran', 'type' => 'pdf', 'text' => ucfirst(FS_ALBARAN) . ' simple', 'params' => '&albaran=TRUE'), array('name' => 'email_albaran_proveedor', 'page_from' => __CLASS__, 'page_to' => 'compras_albaran', 'type' => 'email', 'text' => ucfirst(FS_ALBARAN) . ' simple', 'params' => '&albaran=TRUE'), array('name' => 'imprimir_factura_proveedor', 'page_from' => __CLASS__, 'page_to' => 'compras_factura', 'type' => 'pdf', 'text' => 'Factura simple', 'params' => '&factura=TRUE'));
foreach ($extensiones as $ext) {
$fsext = new fs_extension($ext);
if (!$fsext->save()) {
$this->new_error_msg('Error al guardar la extensión ' . $ext['name']);
}
}
}
示例13: share_extension
private function share_extension()
{
$fsext = new fs_extension();
$fsext->name = 'opciones_clientes';
$fsext->from = __CLASS__;
$fsext->to = 'ventas_clientes';
$fsext->type = 'button';
$fsext->text = '<span class="glyphicon glyphicon-wrench" aria-hidden="true" title="Opciones para nuevos clientes"></span>' . '<span class="hidden-xs"> Opciones</span>';
$fsext->save();
}
示例14: share_extensions
private function share_extensions()
{
$fsext = new fs_extension();
$fsext->name = 'btn_atributos';
$fsext->from = __CLASS__;
$fsext->to = 'ventas_articulos';
$fsext->type = 'button';
$fsext->text = '<span class="glyphicon glyphicon-list-alt" aria-hidden="true"></span>' . '<span class="hidden-xs"> Atributos</span>';
$fsext->save();
}
示例15: share_extensions
private function share_extensions()
{
$extensiones = array(array('name' => 'imprimir_recibo', 'page_from' => __CLASS__, 'page_to' => 'ventas_recibo', 'type' => 'pdf', 'text' => 'Recibo simple', 'params' => ''));
foreach ($extensiones as $ext) {
$fsext = new fs_extension($ext);
if (!$fsext->save()) {
$this->new_error_msg('Error al guardar la extensión ' . $ext['name']);
}
}
}