function __construct($pms) { if (!globals::get('pantonescale')) { die("pantone.dat not found!"); } $vals = globals::get('pantonescale'); if (!arr::hasKey($vals, strtoupper($pms))) { throw new ColorException(sprintf("Pantone color %s not known!", $pms)); } $val = $vals[strtoupper($pms)]; $this->red = $val['r']; $this->green = $val['g']; $this->blue = $val['b']; }
function __construct() { $this->conf = globals::get('config'); }