Declare undeclared vars and methods

This commit is contained in:
Phil Davis 2020-02-17 22:15:39 +05:45
parent 84afbeed24
commit 803fedc1c2
No known key found for this signature in database
GPG key ID: CB0E2267D5181F47
12 changed files with 80 additions and 0 deletions

View file

@ -34,6 +34,11 @@ class PDOBasicAuth extends \Sabre\DAV\Auth\Backend\AbstractBasic {
*/
protected $authRealm;
/**
* @var string
*/
private $currentUser;
/**
* Creates the backend object.
*

View file

@ -29,6 +29,16 @@ namespace BaikalAdmin\Controller\Settings;
class Standard extends \Flake\Core\Controller {
/**
* @var \Baikal\Model\Config\Standard
*/
private $oModel;
/**
* @var \Formal\Form
*/
private $oForm;
function execute() {
$this->oModel = new \Baikal\Model\Config\Standard(PROJECT_PATH_SPECIFIC . "config.php");

View file

@ -29,6 +29,16 @@ namespace BaikalAdmin\Controller\Settings;
class System extends \Flake\Core\Controller {
/**
* @var \Baikal\Model\Config\System
*/
private $oModel;
/**
* @var \Formal\Form
*/
private $oForm;
function execute() {
$this->oModel = new \Baikal\Model\Config\System(PROJECT_PATH_SPECIFIC . "config.system.php");

View file

@ -31,6 +31,16 @@ class Users extends \Flake\Core\Controller {
protected $aMessages = [];
/**
* @var \Baikal\Model\User
*/
private $oModel;
/**
* @var \Formal\Form
*/
private $oForm;
function execute() {
if ($this->actionEditRequested()) {
$this->actionEdit();

View file

@ -29,6 +29,11 @@ namespace Flake\Controller;
class Cli extends \Flake\Core\Render\Container {
/**
* @var array
*/
private $aArgs;
function render() {
$this->sys_init();
$this->init();

View file

@ -29,6 +29,11 @@ namespace Flake\Controller;
class HtmlBlock extends \Flake\Core\Controller {
/**
* @var string
*/
private $sHtml;
function __construct($sHtml) {
$this->sHtml = $sHtml;
}

View file

@ -29,6 +29,16 @@ namespace Flake\Controller;
class HtmlBlockTemplated extends \Flake\Core\Controller {
/**
* @var string
*/
private $sTemplatePath;
/**
* @var array
*/
private $aMarkers;
function __construct($sTemplatePath, $aMarkers = []) {
$this->sTemplatePath = $sTemplatePath;
$this->aMarkers = $aMarkers;

View file

@ -34,6 +34,11 @@ class Page extends \Flake\Core\Render\Container {
protected $sMetaDescription = "";
protected $sTemplatePath = "";
/**
* @var string
*/
private $sBaseUrl;
function __construct($sTemplatePath) {
$this->sTemplatePath = $sTemplatePath;
}

View file

@ -29,6 +29,11 @@ namespace Flake\Core;
abstract class Database extends \Flake\Core\FLObject {
private $debugOutput;
private $debug_lastBuiltQuery;
private $store_lastBuiltQuery;
private $oDb;
/* common stuff */
protected function messageAndDie($sMessage) {

View file

@ -29,6 +29,11 @@ namespace Flake\Core;
abstract class PostConnectionService extends \Flake\Core\FLObject {
/**
* @var array
*/
private $aParams;
function __construct($aParams = []) {
$this->aParams = $aParams;
}

View file

@ -28,6 +28,9 @@
namespace Flake\Core\Render;
class Zone extends \Flake\Core\FLObject {
private $oZonableObject;
private $sZone;
function __construct(&$oZonableObject, $sZone) {
$this->oZonableObject = & $oZonableObject;
$this->sZone = $sZone;

View file

@ -28,6 +28,12 @@
namespace Flake\Core;
abstract class Requester extends \Flake\Core\FLObject {
protected $sModelClass = '';
protected $sOrderField = '';
protected $sOrderDirection = 'ASC';
protected $iLimitStart = false;
protected $iLimitNumber = false;
function __construct($sModelClass) {
$this->sModelClass = $sModelClass;
}
@ -61,6 +67,7 @@ abstract class Requester extends \Flake\Core\FLObject {
return $this;
}
abstract function addClauseEquals($sField, $sValue);
abstract function execute();
abstract function count();
}