IBOS open source
  • Namespace
  • Class

Namespaces

  • application
    • core
      • cache
        • driver
        • provider
      • components
      • controllers
      • engines
        • local
        • sae
      • model
      • modules
      • utils
      • widgets
    • modules
      • article
        • controllers
        • core
        • model
        • utils
      • calendar
        • controllers
        • model
        • utils
      • contact
        • controllers
        • model
        • utils
      • dashboard
        • controllers
        • model
        • utils
      • department
        • components
        • model
        • utils
      • diary
        • components
        • controllers
        • model
        • utils
        • widgets
      • email
        • controllers
        • core
        • model
        • utils
      • main
        • behaviors
        • components
        • controllers
        • model
        • utils
        • widgets
      • message
        • controllers
        • core
          • co
          • wx
            • callback
            • event
        • model
        • utils
      • mobile
        • components
        • controllers
        • utils
      • position
        • components
        • model
        • utils
      • recruit
        • components
        • controllers
        • core
        • model
        • utils
        • widgets
      • role
        • model
        • utils
      • user
        • components
        • controllers
        • model
        • utils
      • vote
        • components
        • controllers
        • model
        • utils
      • weibo
        • controllers
        • core
        • model
        • utils

Classes

  • LocalFile
  • LocalIo

Class LocalFile

Namespace: application\core\engines\local
Copyright: Copyright © 2012-2013 IBOS Inc
Author: banyanCheung banyan@ibos.com.cn
Located at system/core/engines/local/LocalFile.php

Methods summary

public static
# getInstance( )
public boolean
# fileExists( string $file )

本地data文件夹文件的文件存在检测 对应云平台的storage目录

本地data文件夹文件的文件存在检测 对应云平台的storage目录

Parameters

$file
文件名

Returns

boolean
public type
# createFile( string $fileName, mixed $content )

本地data文件夹的写操作 对应云平台的storage目录

本地data文件夹的写操作 对应云平台的storage目录

Parameters

$fileName
$content

Returns

type
public boolean
# deleteFile( string $fileName )

本地data文件夹的删除操作 对应云平台的storage目录

本地data文件夹的删除操作 对应云平台的storage目录

Parameters

$fileName

Returns

boolean
public string
# fileName( string $fileName )

本地文件名读取操作

本地文件名读取操作

Parameters

$fileName

Returns

string
public string
# readFile( string $fileName )

本地读取文件内容函数

本地读取文件内容函数

Parameters

$fileName

Returns

string
public integer
# fileSize( string $file )

本地环境文件大小:直接调用filesize

本地环境文件大小:直接调用filesize

Parameters

$file
文件名

Returns

integer
文件大小字节数
public mixed
# imageSize( string $image )

本地环境图像尺寸获取:直接调用getimagesize

本地环境图像尺寸获取:直接调用getimagesize

Parameters

$image
图像地址

Returns

mixed
public string
# getTempPath( )

本地环境获取临时目录:返回data/temp目录

本地环境获取临时目录:返回data/temp目录

Returns

string
public
# clearDir( string $dir )

清空目录下文件

清空目录下文件

Parameters

$dir
目录名
public
# clearDirs( string $srcDir )

递归清空目录包括目录本身

递归清空目录包括目录本身

Parameters

$srcDir
目标文件夹路径
public
# download( type $attach, type $downloadInfo = array() )

本地环境附件下载方法

本地环境附件下载方法

Parameters

$attach
$downloadInfo

Properties summary

public array $excludeFiles

扫描文件夹时忽略的文件夹

扫描文件夹时忽略的文件夹

# array( '.svn', '.gitignore', '.', '..' )
IBOS open source API documentation generated by ApiGen