本文整理汇总了PHP中Export::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Export::__construct方法的具体用法?PHP Export::__construct怎么用?PHP Export::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Export
的用法示例。
在下文中一共展示了Export::__construct方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct($id_service, $filename = false)
{
$this->name = 'CSV';
$this->extension = 'csv';
parent::__construct($id_service, $filename);
self::$_delimiter = trim(self::$_serviceData['delimiter']) == '' ? Configuration::get('EXPORTFREE_DELIMITER') : self::$_serviceData['delimiter'];
self::$_enclosure = trim(self::$_serviceData['enclosure']) == '' ? Configuration::get('EXPORTFREE_ENCLOSURE') : self::$_serviceData['enclosure'];
self::$_delimiter = ExportTools::delimiterByKeyWord(self::$_delimiter);
self::$_enclosure = ExportTools::getEnclosureFromId(self::$_enclosure);
}
示例2: __construct
public function __construct(array $attributes = array())
{
parent::__construct($attributes);
$this->type = 'html';
$this->template = 'exports.templates.bootstrap';
}
示例3: __construct
public function __construct($title, $fileName = 'export', $params = array(), $charset = 'UTF-8')
{
$this->delimiter = isset($params['delimiter']) ? $params['delimiter'] : $this->delimiter;
$this->withBOM = isset($params['withBOM']) ? $params['withBOM'] : $this->withBOM;
parent::__construct($title, $fileName, $params, $charset);
}
示例4: __construct
public function __construct($tilte, $fileName = 'export', $params = array(), $charset = 'UTF-8')
{
$this->objPHPExcel = new \PHPExcel();
parent::__construct($tilte, $fileName, $params, $charset);
}
示例5: __construct
public function __construct(array $attributes = array())
{
parent::__construct($attributes);
$this->type = 'csv';
}