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; protected $authRealm;
/**
* @var string
*/
private $currentUser;
/** /**
* Creates the backend object. * Creates the backend object.
* *

View file

@ -29,6 +29,16 @@ namespace BaikalAdmin\Controller\Settings;
class Standard extends \Flake\Core\Controller { class Standard extends \Flake\Core\Controller {
/**
* @var \Baikal\Model\Config\Standard
*/
private $oModel;
/**
* @var \Formal\Form
*/
private $oForm;
function execute() { function execute() {
$this->oModel = new \Baikal\Model\Config\Standard(PROJECT_PATH_SPECIFIC . "config.php"); $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 { class System extends \Flake\Core\Controller {
/**
* @var \Baikal\Model\Config\System
*/
private $oModel;
/**
* @var \Formal\Form
*/
private $oForm;
function execute() { function execute() {
$this->oModel = new \Baikal\Model\Config\System(PROJECT_PATH_SPECIFIC . "config.system.php"); $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 = []; protected $aMessages = [];
/**
* @var \Baikal\Model\User
*/
private $oModel;
/**
* @var \Formal\Form
*/
private $oForm;
function execute() { function execute() {
if ($this->actionEditRequested()) { if ($this->actionEditRequested()) {
$this->actionEdit(); $this->actionEdit();

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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