$value) { if ($value['class'] == $className) { $uri = ($id ? (preg_replace('/\/[:][a-zA-Z-0-9]+/', '', $key) . '/' . $id ) : $key); break; } } $this->href = $uri; } function addLink($link) { $this->links[] = $link; } function addItem($item) { $this->itens[] = $item; } function addData($data) { $this->data[] = $data; } function getData() { return $this->data; } function setTemplate($template) { $this->template = $template; } function getTemplate() { return $this->template; } function setType($type) { $this->type = $type; } function getType() { return $this->type; } function addQueries($queries) { $this->queries[] = $queries; } function getQueries() { return $this->queries; } function setError($error) { $this->error = $error; } function getError() { return $this->error; } function setPagination($pagination) { $this->pagination = $pagination; } function getPagination() { return $this->pagination; } } ?>