public function __construct($uri_id) { $this->_Uri = new Uri(); $this->_Uri->query($uri_id); $Model = new \Model_Mock(); $this->_mock = $Model->fetchListByUriId($this->_Uri->getId()); }
public function __construct($uri_id) { $this->_Uri = new Uri(); $this->_Uri->query($uri_id); $Model = new \Model_Mock(); $list = $Model->fetchListByUriId($uri_id); foreach ($list as $mock) { $this->_mock[$mock['user']][] = $mock; } }