models/ScoutTools.phpView Source

Show: PublicProtectedPrivateinherited
Table of Contents
Package
Default  

\ScoutTools

Package: Models
Scout tools model

Methods

methodpublicarrayToObject(array $array) : object

Convert array to object

Parameters
NameTypeDescription
$arrayarray
Returns
TypeDescription
object
methodpublicarrayToObject2(array $array) : object
static

Convert array to object 2

Parameters
NameTypeDescription
$arrayarray
Returns
TypeDescription
object
methodpublicfixPhoneFormat(string $phoneNumber) : string
static

Fix phone string format

Parameters
NameTypeDescription
$phoneNumberstring
Returns
TypeDescription
string
methodpubliclogToFile(mixed $data, string $title = "", string $type = "custom") : void
static

Log to file

Parameters
NameTypeDescription
$datamixed
$titlestring
$typestring
methodpublicp(mixed $item, string $title = '') : void
static

Print data short version

Parameters
NameTypeDescription
$itemmixed
$titlestring
methodpublicsec2timestr(integer $sec_in) : string
static

Convert seconts to time

Parameters
NameTypeDescription
$sec_ininteger
Returns
TypeDescription
string
methodpublicsendToZip( $zipName = "",  $aFiles = array()) : void
static

Parameters
NameTypeDescription
$zipName
  • name of the Zip without extension
$aFiles
  • array of full file paths
Throws
ExceptionDescription
\Zend_Exception
Documentation was generated by phpDocumentor 2.8.5.