Skip to content

Instantly share code, notes, and snippets.

@kaioken
Created February 17, 2015 06:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaioken/43fb8b84ef9c8834cf51 to your computer and use it in GitHub Desktop.
Save kaioken/43fb8b84ef9c8834cf51 to your computer and use it in GitHub Desktop.
Estilo de Documentacion
/*
* Las funciones deben llevar el standar de documentacion de esta manera , no lo estamos siguiendo.
* debemos definir los parametros @param tipo y nombre
* que devuelve la funcion @return
* y su descripcion como estan haciendo
*/
/**
* funcion prinicpal pork el index de esta shit suckea por ahora -_-
* @return void
*/
public function homeAction()
{
//remove the registration session
$this->session->remove('userRegistrationKey');
$this->view->setVar('noAds', true);
//if the user is logged in and passed the welcome screen show feeds
if($this->userData->isLoggedIn() && $this->userData->welcome)
{
$this->tag->setTitleSeparator(true);
$this->tag->setTitle('Naruho.do');
$this->view->setVar('globalSlider', null);
$this->view->pick('index/feed');
$this->view->setVar('noAds', true);
//get the user feed list
$this->view->setVar('userFeed', userFeed::getAll($this->userData));
}
}
/**
* Relate a series from MAL with Naruhodo
*
* @param int $seriesId
* @param string $title
* @param int $categoryId
* @param sourceInfo $sourceInfo
* @return Series
*/
public function getRelatedSeries($seriesId, $title, $categoryId, $sourceInfo)
{
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment