Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 2552 → Rev 3473

/trunk/jrest/lib/Mail_mimeDecode.php
165,7 → 165,7
* @param string The input to decode
* @access public
*/
function Mail_mimeDecode($input)
function __construct($input)
{
list($header, $body) = $this->_splitBodyHeader($input);
 
/trunk/jrest/lib/ExcelReader/excel_reader2.php
95,7 → 95,7
 
class OLERead {
var $data = '';
function OLERead(){ }
function __construct(){ }
 
function read($sFileName){
// check if file exist and is readable (Darko Miljanovic)
913,7 → 913,7
*
* Some basic initialisation
*/
function Spreadsheet_Excel_Reader($file='',$store_extended_info=true,$outputEncoding='') {
function __construct($file='',$store_extended_info=true,$outputEncoding='') {
$this->_ole = new OLERead();
$this->setUTFEncoder('iconv');
if ($outputEncoding != '') {
/trunk/jrest/lib/DB/mysql.php
65,9 → 65,9
*
* @access public
*/
function DB_mysql()
function __construct()
{
$this->DB_common();
parent::__construct();
$this->phptype = 'mysql';
$this->dbsyntax = 'mysql';
$this->features = array(
/trunk/jrest/lib/gPoint.php
104,7 → 104,7
var $secondStdParallel; // For lambert Projection
 
// constructor
function gPoint($datum='WGS 84') // Default datum is WGS 84
function __construct($datum='WGS 84') // Default datum is WGS 84
{
$this->a = $this->ellipsoid[$datum][0]; // Set datum Equatorial Radius
$this->e2 = $this->ellipsoid[$datum][1]; // Set datum Square of eccentricity
/trunk/jrest/lib/JSON.php
130,7 → 130,7
* bubble up with an error, so all return values
* from encode() should be checked with isError()
*/
function Services_JSON($use = 0)
function __construct($use = 0)
{
$this->use = $use;
}
780,10 → 780,10
 
class Services_JSON_Error extends PEAR_Error
{
function Services_JSON_Error($message = 'unknown error', $code = null,
function __construct($message = 'unknown error', $code = null,
$mode = null, $options = null, $userinfo = null)
{
parent::PEAR_Error($message, $code, $mode, $options, $userinfo);
parent::__construct($message, $code, $mode, $options, $userinfo);
}
}
 
794,7 → 794,7
*/
class Services_JSON_Error
{
function Services_JSON_Error($message = 'unknown error', $code = null,
function __construct($message = 'unknown error', $code = null,
$mode = null, $options = null, $userinfo = null)
{
 
/trunk/jrest/lib/Writer.php
50,10 → 50,10
* @param string $filename The optional filename for the Workbook.
* @return Spreadsheet_Excel_Writer_Workbook The Workbook created
*/
function Spreadsheet_Excel_Writer($filename = '')
function __construct($filename = '')
{
$this->_filename = $filename;
$this->Spreadsheet_Excel_Writer_Workbook($filename);
parent::__construct($filename);
}
 
/**
/trunk/jrest/lib/OLE.php
96,7 → 96,7
* Creates a new OLE object
* @access public
*/
function OLE()
function __construct()
{
$this->_list = array();
}
/trunk/jrest/lib/Spreadsheet/Excel/Writer.php
50,10 → 50,10
* @param string $filename The optional filename for the Workbook.
* @return Spreadsheet_Excel_Writer_Workbook The Workbook created
*/
function Spreadsheet_Excel_Writer($filename = '')
function __construct($filename = '')
{
$this->_filename = $filename;
$this->Spreadsheet_Excel_Writer_Workbook($filename);
parent::__construct($filename);
}
 
/**
/trunk/jrest/lib/Spreadsheet/Excel/Writer/Worksheet.php
385,7 → 385,7
* @param string $tmp_dir The path to the directory for temporary files
* @access private
*/
function Spreadsheet_Excel_Writer_Worksheet($BIFF_version, $name,
function __construct($BIFF_version, $name,
$index, &$activesheet,
&$firstsheet, &$str_total,
&$str_unique, &$str_table,
393,7 → 393,7
$tmp_dir)
{
// It needs to call its parent's constructor explicitly
$this->Spreadsheet_Excel_Writer_BIFFwriter();
parent::__construct();
$this->_BIFF_version = $BIFF_version;
$rowmax = 65536; // 16384 in Excel 5
$colmax = 256;
/trunk/jrest/lib/Spreadsheet/Excel/Writer/Parser.php
169,7 → 169,7
* @param integer $byte_order The byte order (Little endian or Big endian) of the architecture
(optional). 1 => big endian, 0 (default) little endian.
*/
function Spreadsheet_Excel_Writer_Parser($byte_order, $biff_version)
function __construct($byte_order, $biff_version)
{
$this->_current_char = 0;
$this->_BIFF_version = $biff_version;
/trunk/jrest/lib/Spreadsheet/Excel/Writer/Workbook.php
171,10 → 171,10
* @param string filename for storing the workbook. "-" for writing to stdout.
* @access public
*/
function Spreadsheet_Excel_Writer_Workbook($filename)
function __construct($filename)
{
// It needs to call its parent's constructor explicitly
$this->Spreadsheet_Excel_Writer_BIFFwriter();
parent::__construct();
 
$this->_filename = $filename;
$this->_parser = new Spreadsheet_Excel_Writer_Parser($this->_byte_order, $this->_BIFF_version);
/trunk/jrest/lib/Spreadsheet/Excel/Writer/BIFFwriter.php
101,7 → 101,7
*
* @access public
*/
function Spreadsheet_Excel_Writer_BIFFwriter()
function __construct()
{
$this->_byte_order = '';
$this->_data = '';
/trunk/jrest/lib/Spreadsheet/Excel/Writer/Validator.php
67,7 → 67,7
*/
var $_parser;
 
function Spreadsheet_Excel_Writer_Validator(&$parser)
function __construct(&$parser)
{
$this->_parser = $parser;
$this->_type = 0x01; // FIXME: add method for setting datatype
/trunk/jrest/lib/Spreadsheet/Excel/Writer/Format.php
249,7 → 249,7
* @param integer $index the XF index for the format.
* @param array $properties array with properties to be set on initialization.
*/
function Spreadsheet_Excel_Writer_Format($BIFF_version, $index = 0, $properties = array())
function __construct($BIFF_version, $index = 0, $properties = array())
{
$this->_xf_index = $index;
$this->_BIFF_version = $BIFF_version;
/trunk/jrest/lib/PHPExcel/Classes/PHPExcel/Shared/PCLZip/pclzip.lib.php
212,7 → 212,7
// Note that no real action is taken, if the archive does not exist it is not
// created. Use create() for that.
// --------------------------------------------------------------------------------
function PclZip($p_zipname)
function __construct($p_zipname)
{
 
// ----- Tests the zlib
/trunk/jrest/lib/PEAR.php
146,7 → 146,7
* @access public
* @return void
*/
function PEAR($error_class = null)
function __construct($error_class = null)
{
$classname = get_class($this);
if ($this->_debug) {
724,7 → 724,7
* @access public
*
*/
function PEAR_Error($message = 'unknown error', $code = null,
function __construct($message = 'unknown error', $code = null,
$mode = null, $options = null, $userinfo = null)
{
if ($mode === null) {
/trunk/jrest/lib/OLE/PPS/File.php
45,10 → 45,10
* @param string $name The name of the file (in Unicode)
* @see OLE::Asc2Ucs()
*/
function OLE_PPS_File($name)
function __construct($name)
{
$this->_tmp_dir = @System::tmpdir();
$this->OLE_PPS(
parent::__construct(
null,
$name,
OLE_PPS_TYPE_FILE,
/trunk/jrest/lib/OLE/PPS/Root.php
51,10 → 51,10
* @param integer $time_1st A timestamp
* @param integer $time_2nd A timestamp
*/
function OLE_PPS_Root($time_1st, $time_2nd, $raChild)
function __construct($time_1st, $time_2nd, $raChild)
{
$this->_tmp_dir = @System::tmpdir();
$this->OLE_PPS(
parent::__construct(
null,
OLE::Asc2Ucs('Root Entry'),
OLE_PPS_TYPE_ROOT,
/trunk/jrest/lib/OLE/PPS.php
125,7 → 125,7
* @param string $data The (usually binary) source data of the PPS
* @param array $children Array containing children PPS for this PPS
*/
function OLE_PPS($No, $name, $type, $prev, $next, $dir, $time_1st, $time_2nd, $data, $children)
function __construct($No, $name, $type, $prev, $next, $dir, $time_1st, $time_2nd, $data, $children)
{
$this->No = $No;
$this->Name = $name;
/trunk/jrest/lib/HTTP/HTTP/Header.php
139,7 → 139,7
* @access public
* @return object HTTP_Header
*/
function HTTP_Header()
function __construct()
{
if (isset($_SERVER['SERVER_PROTOCOL'])) {
$this->setHttpVersion(substr($_SERVER['SERVER_PROTOCOL'], -3));