예제 #1
0
 /**
  * The start action, it shows the "search" view
  */
 public function indexAction()
 {
     $searchParams = ['ping.batchId' => 'batchId', 'ping.proxyId' => 'proxyId', 'b.urlId' => 'urlId'];
     Tag::setDefaults(array('urlId' => $this->request->get('urlId'), 'proxyId' => $this->request->get('proxyId'), 'pingId' => $this->request->get('pingId'), 'batchId' => $this->request->get('batchId')));
     $this->view->pings = $this->searchPings($searchParams);
     $this->view->proxies = Proxy::find();
     $this->view->urls = Url::find();
     $this->view->batches = Batch::find();
     #$this->view->disable();
 }
예제 #2
0
 /**
  * Shows the view to create a "new" product
  */
 public function newAction()
 {
     $reflection = new FormReflectionManager($this->flash);
     $this->view->name = $reflection->get('name');
     $this->view->urls = Url::find() ?: array();
     $this->view->proxies = Proxy::find() ?: array();
     $this->view->reflected_proxyId = explode(',', $reflection->get('proxyId'));
     $this->view->reflected_address = explode(',', $reflection->get('address'));
     #$this->view->disable();
 }
예제 #3
0
 /**
  * The start action, it shows the "search" view
  */
 public function indexAction()
 {
     $proxies = Proxy::find();
     $this->view->proxies = $proxies;
     #$this->view->disable();
 }