General Code Cleanup
completed by: Gautam
mentors: Carsten Schmitz (c_schmitz), Pieter-Jan Speelmans (MrP001), Tom Klingenberg (mot2), Shubham Sachdeva, TMSWhite, Diogo Gonçalves (dionet)
Clean up the mess in our development Yii version!
Things to do:
- Remove usage of $this->yii and $this->controller from the actions and instead use Yii::app and $this->getController() respectively.
- Remove $dbprefix usage from all queries and instead wrap table names with curly braces.
- Format code with respect to LimeSurvey Coding guidelines.
- Implement Survey_Common_Action::_renderWrappedTemplate() in all the administration actions.
- Properly implement Survey_Common_Action::css_admin_includes() and Survey_Common_Actions::js_admin_includes() (migrate them from AdminController) in all the administration actions.
- Standardize code across all the actions (especially run method).