98 lines
3.7 KiB
PHP
98 lines
3.7 KiB
PHP
<?php namespace ZN\Helpers;
|
|
/**
|
|
* ZN PHP Web Framework
|
|
*
|
|
* "Simplicity is the ultimate sophistication." ~ Da Vinci
|
|
*
|
|
* @package ZN
|
|
* @license MIT [http://opensource.org/licenses/MIT]
|
|
* @author Ozan UYKUN [ozan@znframework.com]
|
|
*/
|
|
|
|
use ZN\Config;
|
|
|
|
class Symbol
|
|
{
|
|
/**
|
|
* Magic Call
|
|
*
|
|
* @param string $method
|
|
* @param array $parameters
|
|
*
|
|
* @return string|false
|
|
*/
|
|
public function __call($method, $parameters)
|
|
{
|
|
return $this->symbols[$method] ?? false;
|
|
}
|
|
|
|
/**
|
|
* Magic Constructor
|
|
*/
|
|
public function __construct()
|
|
{
|
|
$this->symbols = array_merge(Config::get('Expressions', 'symbols'), $this->symbols);
|
|
}
|
|
|
|
/**
|
|
* Keeps Symbols
|
|
*
|
|
* @var array
|
|
*/
|
|
public $symbols =
|
|
[
|
|
'copyright' => '©', //©
|
|
'register' => '®', //®
|
|
'euro' => '€', //€
|
|
'dolar' => '$', //$
|
|
'usd' => '$', //$
|
|
'rightDoubleArrow' => '»', //»
|
|
'leftDoubleArrow' => '«', //«
|
|
'invertQuestion' => '¿', //¿
|
|
'tradeMark' => '™', //™
|
|
'turkishLira' => '₺', //t
|
|
'cent' => '¢', //¢
|
|
'yen' => '¥', //¥
|
|
'pound' => '£', //£
|
|
'currency' => '¤', //¤
|
|
'division' => '÷', //÷
|
|
'minus' => '±', //±
|
|
'micro' => 'µ', //µ
|
|
'degree' => '°', //°
|
|
'section' => '§', //§
|
|
'bigSlash' => 'Ø', //Ø
|
|
'smallSlash' => 'ø', //ø
|
|
'permil' => '‰', //‰
|
|
'tilde' => '~', //~
|
|
'spade' => '♠', //♠
|
|
'club' => '♣', //♣
|
|
'heart' => '♥', //♥
|
|
'diam' => '♦', //♦
|
|
'at' => '@', //@
|
|
'function' => 'ƒ', //ƒ
|
|
'product' => '∏', //∏
|
|
'equivalent ' => '≡', //≡
|
|
'partial' => '∂', //∂
|
|
'integral' => '∫', //∫
|
|
'infinity' => '∞', //∞
|
|
'squareRoot' => '√', //√
|
|
'approximately' => '≈', //≈
|
|
'notEquals' => '≠', //≠
|
|
'triangle' => '∴', //∴
|
|
'greaterEquals' => '≥', //≥
|
|
'lessEquals' => '≤', //≤
|
|
'paragraph' => '¶', //¶
|
|
'bigDote' => '•', //•
|
|
'midDote' => '·', //·
|
|
'dagger' => '†', //†
|
|
'doubleDagger' => '‡', //‡
|
|
'diamond' => '◊', //◊
|
|
'upArrow' => '↑', //↑
|
|
'downArrow' => '↓', //↓
|
|
'leftArrow' => '←', //←
|
|
'rightArrow' => '→', //→
|
|
'doubleHeadedArrow' => '↔', //↔
|
|
'notSymbol' => '¬' //¬
|
|
];
|
|
}
|