public function executeMost() { $most = $this->getRequestParameter('most'); $this->logMessage('Umut: ' . $most, 'debug'); if (!$most || $most == 'new') { $this->snippets = SnippetPeer::getNewCodes($this->getUser()->getPreference('box_snippets_size')); } else { if ($most == 'high') { $this->snippets = SnippetPeer::getPopularCodes($this->getUser()->getPreference('box_snippets_size')); } else { if ($most == 'disc') { $this->snippets = SnippetPeer::getMostDiscussedCodes($this->getUser()->getPreference('box_snippets_size')); } else { $this->snippets = SnippetPeer::getNewCodes(); } } } }