本文整理汇总了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);
}
}
示例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);
}
}
示例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();
}
示例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() . '/';
}
示例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() . '/';
}
示例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);
}
示例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() . '/';
}
示例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');
}
示例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() . '/';
}
示例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');
}
}
示例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);
}
示例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;
}
示例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;
}
示例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ó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ón de data desde archivos');
$data['head'] = $this->rapyd->get_head();
$this->load->view('view_ventanas', $data);
}
示例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());
}
}