public static function extractAttribute($serialized, $extract) { $arr = array(); foreach (explode('&', $serialized) as $attr) { if (ControllerHelper::startsWith($attr, $extract)) { $val = explode('=', $attr); array_push($arr, $val[1]); } } return $arr; }
public function __construct($controller, $commentClass) { parent::__construct($controller); $this->_commentClass = $commentClass; }