/** * Pops the last id prefix. * Now all ids rendered by Q_Html will be prefixed with the * id previously on top of the stack, if any. * @method popIdPrefix * @static * @return {string|null} The prefix that has been popped, if any */ static function popIdPrefix() { if (count(self::$id_prefixes) <= 1) { throw new Exception("Nothing to Qbix from prefix stack"); } array_pop(self::$tool_ids); $popped_prefix = array_pop(self::$id_prefixes); self::$id_prefix = end(self::$id_prefixes); return $popped_prefix; }