first commit
This commit is contained in:
46
class/highcharts/HighchartJsExpr.php
Normal file
46
class/highcharts/HighchartJsExpr.php
Normal file
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* Copyright 2012-2012 Portugalmail Comunicações S.A (http://www.portugalmail.net/)
|
||||
*
|
||||
* See the enclosed file LICENCE for license information (GPLv3). If you
|
||||
* did not receive this file, see http://www.gnu.org/licenses/gpl-3.0.html.
|
||||
*
|
||||
* @author Gonçalo Queirós <mail@goncaloqueiros.net>
|
||||
*/
|
||||
|
||||
namespace highcharts;
|
||||
|
||||
class HighchartJsExpr
|
||||
{
|
||||
/**
|
||||
* The javascript expression
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
private $_expression;
|
||||
|
||||
/**
|
||||
* The HighchartJsExpr constructor
|
||||
*
|
||||
* @param string $expression The javascript expression
|
||||
*/
|
||||
public function __construct($expression)
|
||||
{
|
||||
$this->_expression = iconv(
|
||||
mb_detect_encoding($expression),
|
||||
"UTF-8",
|
||||
$expression
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the javascript expression
|
||||
*
|
||||
* @return string The javascript expression
|
||||
*/
|
||||
public function getExpression()
|
||||
{
|
||||
return $this->_expression;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user