当前位置: 首页>>代码示例>>PHP>>正文


PHP Path::append方法代码示例

本文整理汇总了PHP中Path::append方法的典型用法代码示例。如果您正苦于以下问题:PHP Path::append方法的具体用法?PHP Path::append怎么用?PHP Path::append使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Path的用法示例。


在下文中一共展示了Path::append方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: setClasspath

 /**
  * Set the classpath to be used when searching for component being defined
  * 
  * @param Path $classpath A Path object containing the classpath.
  */
 public function setClasspath(Path $classpath)
 {
     if ($this->classpath === null) {
         $this->classpath = $classpath;
     } else {
         $this->classpath->append($classpath);
     }
 }
开发者ID:kalaspuffar,项目名称:php-orm-benchmark,代码行数:13,代码来源:TypedefTask.php

示例2: setClasspath

 /**
  * Set the classpath to be used when searching for component being defined
  *
  * @param Path $classpath An Path object containing the classpath.
  * @throws BuildException
  */
 public function setClasspath(Path $classpath)
 {
     if ($this->isReference()) {
         throw $this->tooManyAttributes();
     }
     if ($this->classpath === null) {
         $this->classpath = $classpath;
     } else {
         $this->classpath->append($classpath);
     }
 }
开发者ID:alangalipaud,项目名称:ProjetQCM,代码行数:17,代码来源:Mapper.php

示例3: Catalogo

 function Catalogo()
 {
     parent::Controller();
     $this->load->library("rapyd");
     $this->load->library("path");
     $path = new Path();
     $path->setPath($this->config->item('uploads_dir'));
     $path->append('/inventario');
     $this->upload_path = $path->getPath();
 }
开发者ID:enderochoa,项目名称:tortuga,代码行数:10,代码来源:catalogo.php

示例4: sinvactu

 function sinvactu()
 {
     parent::Controller();
     $this->load->library("rapyd");
     $this->load->library("path");
     $path = new Path();
     $path->setPath($this->config->item('uploads_dir'));
     $path->append('/archivos');
     $this->upload_path = $path->getPath() . '/';
 }
开发者ID:codethics,项目名称:proteoerp,代码行数:10,代码来源:sinvactu.php

示例5: modulos

 function modulos()
 {
     parent::Controller();
     $this->load->library("rapyd");
     $this->load->library("path");
     $path = new Path();
     $path->setPath($this->config->item('uploads_dir'));
     $path->append('/graficos');
     $this->upload_path = $path->getPath() . '/';
 }
开发者ID:codethics,项目名称:proteoerp,代码行数:10,代码来源:modulos.php

示例6: Publicidad

 function Publicidad()
 {
     parent::Controller();
     $this->load->library("rapyd");
     $this->load->library("path");
     $path = new Path();
     $path->setPath($this->config->item('uploads_dir'));
     $path->append('publicidad');
     $this->upload_path = $path->getPath() . '/';
     //$this->datasis->modulo_id(907,1);
 }
开发者ID:enderochoa,项目名称:tortuga,代码行数:11,代码来源:publicidad.php

示例7: logo

 function logo()
 {
     parent::Controller();
     $this->load->library("rapyd");
     $this->load->helper('download');
     $this->load->library("path");
     $path = new Path();
     $path->setPath($this->config->item('base_url'));
     $path->append('images');
     echo $this->upload_path = $path->getPath() . '/';
 }
开发者ID:codethics,项目名称:proteoerp,代码行数:11,代码来源:logo.php

示例8: logo

 function logo()
 {
     parent::Controller();
     $this->load->library('rapyd');
     $this->load->helper('download');
     $this->load->library('path');
     $path = new Path();
     $path->setPath($this->config->item('base_url'));
     $path->append('images');
     $this->upload_path = $path->getPath() . '/';
     $this->write = is_writable('images');
 }
开发者ID:codethics,项目名称:proteoerp,代码行数:12,代码来源:logo.php

示例9: cargasinv

 function cargasinv()
 {
     parent::Controller();
     $this->load->library("rapyd");
     $this->load->library("path");
     $this->load->library('encrypt');
     $this->load->helper('string');
     $path = new Path();
     $path->setPath($this->config->item('uploads_dir'));
     $path1 = reduce_double_slashes(FCPATH . '/uploads/archivos');
     $path->append('/archivos');
     $this->upload_path = $path->getPath() . '/';
 }
开发者ID:codethics,项目名称:proteoerp,代码行数:13,代码来源:cargasinv.php

示例10: Publicidad

 function Publicidad()
 {
     parent::Controller();
     $this->id_modulo = '91A';
     $this->load->library('rapyd');
     $this->load->library('path');
     $path = new Path();
     $path->setPath($this->config->item('uploads_dir'));
     $path->append('publicidad');
     $this->upload_path = $path->getPath() . '/';
     $this->rel_path = reduce_double_slashes(str_replace($this->config->item('base_url'), '', $this->upload_path));
     $this->write = is_writable($this->rel_path);
     if (!is_writable($this->rel_path)) {
         show_error('No se puede escribir en el directorio ' . $this->rel_path . ', debe ajustar los permisos');
     }
 }
开发者ID:codethics,项目名称:proteoerp,代码行数:16,代码来源:publicidad.php

示例11: load

 function load()
 {
     $this->datasis->modulo_id(143, 1);
     $this->load->library('path');
     $path = new Path();
     $path->setPath($this->config->item('uploads_dir'));
     $path->append('/archivos');
     $this->upload_path = $path->getPath() . '/';
     $this->rapyd->load('dataform');
     $form = new DataForm('ventas/pfaclite/load/insert');
     $form->title('Cargar Archivo de Productos (xls)');
     $form->archivo = new uploadField('Archivo', 'archivo');
     $form->archivo->upload_path = '';
     $form->archivo->allowed_types = 'xls';
     $form->archivo->delete_file = false;
     $form->archivo->upload_root = '/tmp';
     $form->archivo->rule = 'required';
     $form->archivo->append("Solo archivos en formato xls (Excel 97-2003)");
     $accion = "javascript:window.location='" . site_url('ventas/pfaclite/filteredgrid') . "'";
     $form->button('btn_pfl', 'Regresar', $accion, 'TR');
     $form->submit('btnsubmit', 'Enviar');
     $form->build_form();
     $rti = '';
     if ($form->on_success()) {
         $arch = '/tmp/' . $form->archivo->upload_data['file_name'];
         $rt = $this->nread($arch);
         $rti = "<p>{$rt}</p>";
     }
     $data['content'] = $rti . $form->output;
     $data['title'] = heading('Cargar Pedido desde Excel');
     $data['head'] = $this->rapyd->get_head();
     $this->load->view('view_ventanas_lite', $data);
 }
开发者ID:codethics,项目名称:proteoerp,代码行数:33,代码来源:pfaclite.php

示例12: getBasePath

 /**
  * Get request base path with arbitrary offset
  * @param integer $offset
  * @param integer $format
  * @return string
  */
 public function getBasePath($offset = 0, $format = self::FORMAT_NO_DELIMITERS)
 {
     $basePathList = $this->basePathParts;
     if ($offset > 0) {
         $basePathList = array_slice($basePathList, 0, -$offset);
     }
     $parts = new Path('', $this->separator);
     foreach ($basePathList as $path) {
         $parts->append($path);
     }
     $basePathString = $parts->getFullPath($format);
     return $basePathString;
 }
开发者ID:sitesupra,项目名称:sitesupra,代码行数:19,代码来源:Path.php

示例13: __clone

 /**
  * Return a Path that holds the same elements as this instance.
  */
 public function __clone()
 {
     $p = new Path($this->project);
     $p->append($this);
     return $p;
 }
开发者ID:Daniel-Marynicz,项目名称:symfony1-legacy,代码行数:9,代码来源:Path.php

示例14: load

 function load()
 {
     $this->load->library('path');
     $this->load->helper('html');
     $path = new Path();
     $path->setPath($this->config->item('uploads_dir'));
     $path->append('/archivos');
     $this->upload_path = $path->getPath() . '/';
     $this->rapyd->load('dataform');
     $form = new DataForm($this->url . 'load/process');
     $form->title('Importar Archivos');
     $form->explica1 = new containerField('', "<p style='color:blue;background-color:C6DAF6;align:center'>Para cargar un nuevo archivo de data seleccionelo en el el bot&oacute;n Examinar y luego presione enviar.</p>");
     $form->container = new containerField('adver', 'Solo archivos en formato EXCEL 97, asegurese de que la informacion que desea importar este en la hoja 1.');
     $form->archivo = new uploadField('Archivo', 'archivo');
     $form->archivo->upload_path = '';
     $form->archivo->allowed_types = 'xls';
     $form->archivo->delete_file = false;
     $form->archivo->upload_root = '/tmp';
     $form->archivo->rule = 'required';
     $form->archivo->append('Solo archivos en formato xls (Excel 97-2003)');
     $form->submit('btnsubmit', 'Enviar');
     $form->build_form();
     $rti = '';
     if ($form->on_success()) {
         $idtabla = intval($this->datasis->dameval('SELECT MAX(id_tabla) AS maxid FROM ' . $this->tabla));
         $idtabla++;
         $arch = '/tmp/' . $form->archivo->upload_data['file_name'];
         $rt = $this->_xlsread($arch, $idtabla);
         $rti = "<p>{$rt}</p>";
     }
     $lista = array();
     $mSQL = 'SELECT id_tabla,COUNT(*) AS cana  FROM ' . $this->tabla . ' GROUP BY id_tabla ORDER BY id_tabla DESC LIMIT 10';
     $query = $this->db->query($mSQL);
     if ($query->num_rows() > 0) {
         foreach ($query->result() as $row) {
             $lista[] = anchor($this->url . 'procesar/' . $row->id_tabla, 'Tabla: ' . $row->id_tabla . ' (' . $row->cana . ' registros).');
         }
         $listaul = '<h2>Tablas ya importadas</h2>' . ul($lista);
     } else {
         $listaul = '';
     }
     $data['content'] = $rti . $form->output . $listaul;
     $data['title'] = heading('Importaci&oacute;n de data desde archivos');
     $data['head'] = $this->rapyd->get_head();
     $this->load->view('view_ventanas', $data);
 }
开发者ID:codethics,项目名称:proteoerp,代码行数:46,代码来源:extimpor.php

示例15: COUNT

 function _post_delete($do)
 {
     $nombre = $do->get('nombre');
     $chek = $this->datasis->dameval("SELECT COUNT(*) FROM sinvfot WHERE nombre='{$nombre}'");
     if ($chek <= 0) {
         $path = new Path();
         $path->setPath($_SERVER['DOCUMENT_ROOT']);
         $path->append($this->upload_path);
         $path->append($nombre);
         unlink($path->getPath());
     }
 }
开发者ID:codethics,项目名称:proteoerp,代码行数:12,代码来源:fotos.php


注:本文中的Path::append方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。