Vtiger_Cache
has 39 functions (exceeds 20 allowed). Consider refactoring. Open
class Vtiger_Cache
{
private static $selfInstance = false;
public static $cacheEnable = true;
protected $connector;
The class Vtiger_Cache has an overall complexity of 74 which is very high. The configured complexity threshold is 50. Open
class Vtiger_Cache
{
private static $selfInstance = false;
public static $cacheEnable = true;
protected $connector;
- Exclude checks
File Cache.php
has 271 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/* +***********************************************************************************
* The contents of this file are subject to the vtiger CRM Public License Version 1.0
* ("License"); You may not use this file except in compliance with the License
* The Original Code is: vtiger CRM Open Source
The class Vtiger_Cache has 18 fields. Consider redesigning Vtiger_Cache to keep the number of fields under 15. Open
class Vtiger_Cache
{
private static $selfInstance = false;
public static $cacheEnable = true;
protected $connector;
- Read upRead up
- Exclude checks
TooManyFields
Since: 0.1
Classes that have too many fields could be redesigned to have fewer fields, possibly through some nested object grouping of some of the information. For example, a class with city/state/zip fields could instead have one Address field.
Example
class Person {
protected $one;
private $two;
private $three;
[... many more fields ...]
}
Source https://phpmd.org/rules/codesize.html#toomanyfields
Class "Vtiger_Cache" has 39 methods, which is greater than 20 authorized. Split it into smaller classes. Open
class Vtiger_Cache
- Read upRead up
- Exclude checks
A class that grows too much tends to aggregate too many responsibilities and inevitably becomes harder to understand and therefore to maintain. Above a specific threshold, it is strongly advised to refactor the class into smaller ones which focus on well defined topics.
The method getInstance uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
self::$selfInstance = new self();
return self::$selfInstance;
}
- Read upRead up
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
Avoid using static access to class 'Vtiger_Cache_Connector' in method '__construct'. Open
$this->connector = Vtiger_Cache_Connector::getInstance();
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Expected an object instance when accessing an instance property, but saw an expression with type false
Open
$self->connector->flush();
- Exclude checks
Assigning \Vtiger_Cache
to property but \Vtiger_Cache::$selfInstance
is false
Open
self::$selfInstance = new self();
- Exclude checks
Expected an object instance when accessing an instance property, but saw an expression with type false
Open
return $self->connector->get($ns, $key);
- Exclude checks
Expected an object instance when accessing an instance property, but saw an expression with type false
Open
$self->connector->set($ns, $key, $value);
- Exclude checks
Avoid excessively long variable names like $_owners_db_names_list. Keep variable name length under 20. Open
private static $_owners_db_names_list;
- Read upRead up
- Exclude checks
LongVariable
Since: 0.2
Detects when a field, formal or local variable is declared with a long name.
Example
class Something {
protected $reallyLongIntName = -3; // VIOLATION - Field
public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
$otherReallyLongName = -5; // VIOLATION - Local
for ($interestingIntIndex = 0; // VIOLATION - For
$interestingIntIndex < 10;
$interestingIntIndex++ ) {
}
}
}
Source https://phpmd.org/rules/naming.html#longvariable
Each class must be in a namespace of at least one level (a top-level vendor name) Open
class Vtiger_Cache
- Exclude checks
A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 13 and the first side effect is on line 11. Open
<?php
- Exclude checks
The property $_owners_names_list is not named in camelCase. Open
class Vtiger_Cache
{
private static $selfInstance = false;
public static $cacheEnable = true;
protected $connector;
- Read upRead up
- Exclude checks
CamelCasePropertyName
Since: 0.2
It is considered best practice to use the camelCase notation to name attributes.
Example
class ClassName {
protected $property_name;
}
Source
The property $_table_exists is not named in camelCase. Open
class Vtiger_Cache
{
private static $selfInstance = false;
public static $cacheEnable = true;
protected $connector;
- Read upRead up
- Exclude checks
CamelCasePropertyName
Since: 0.2
It is considered best practice to use the camelCase notation to name attributes.
Example
class ClassName {
protected $property_name;
}
Source
Avoid variables with short names like $ns. Configured minimum length is 3. Open
public static function get($ns, $key)
- Read upRead up
- Exclude checks
ShortVariable
Since: 0.2
Detects when a field, local, or parameter has a very short name.
Example
class Something {
private $q = 15; // VIOLATION - Field
public static function main( array $as ) { // VIOLATION - Formal
$r = 20 + $this->q; // VIOLATION - Local
for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
$r += $this->q;
}
}
}
Source https://phpmd.org/rules/naming.html#shortvariable
Avoid variables with short names like $ns. Configured minimum length is 3. Open
public static function set($ns, $key, $value)
- Read upRead up
- Exclude checks
ShortVariable
Since: 0.2
Detects when a field, local, or parameter has a very short name.
Example
class Something {
private $q = 15; // VIOLATION - Field
public static function main( array $as ) { // VIOLATION - Formal
$r = 20 + $this->q; // VIOLATION - Local
for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
$r += $this->q;
}
}
}
Source https://phpmd.org/rules/naming.html#shortvariable
Avoid variables with short names like $id. Configured minimum length is 3. Open
public function setOwnerDbName($id, $value)
- Read upRead up
- Exclude checks
ShortVariable
Since: 0.2
Detects when a field, local, or parameter has a very short name.
Example
class Something {
private $q = 15; // VIOLATION - Field
public static function main( array $as ) { // VIOLATION - Formal
$r = 20 + $this->q; // VIOLATION - Local
for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
$r += $this->q;
}
}
}
Source https://phpmd.org/rules/naming.html#shortvariable
The class Vtiger_Cache is not named in CamelCase. Open
class Vtiger_Cache
{
private static $selfInstance = false;
public static $cacheEnable = true;
protected $connector;
- Read upRead up
- Exclude checks
CamelCaseClassName
Since: 0.2
It is considered best practice to use the CamelCase notation to name classes.
Example
class class_name {
}
Source
The property $_module_ownedby is not named in camelCase. Open
class Vtiger_Cache
{
private static $selfInstance = false;
public static $cacheEnable = true;
protected $connector;
- Read upRead up
- Exclude checks
CamelCasePropertyName
Since: 0.2
It is considered best practice to use the camelCase notation to name attributes.
Example
class ClassName {
protected $property_name;
}
Source
The property $_picklist_id is not named in camelCase. Open
class Vtiger_Cache
{
private static $selfInstance = false;
public static $cacheEnable = true;
protected $connector;
- Read upRead up
- Exclude checks
CamelCasePropertyName
Since: 0.2
It is considered best practice to use the camelCase notation to name attributes.
Example
class ClassName {
protected $property_name;
}
Source
The property $_name_fields is not named in camelCase. Open
class Vtiger_Cache
{
private static $selfInstance = false;
public static $cacheEnable = true;
protected $connector;
- Read upRead up
- Exclude checks
CamelCasePropertyName
Since: 0.2
It is considered best practice to use the camelCase notation to name attributes.
Example
class ClassName {
protected $property_name;
}
Source
Avoid variables with short names like $id. Configured minimum length is 3. Open
public function getOwnerName($id)
- Read upRead up
- Exclude checks
ShortVariable
Since: 0.2
Detects when a field, local, or parameter has a very short name.
Example
class Something {
private $q = 15; // VIOLATION - Field
public static function main( array $as ) { // VIOLATION - Formal
$r = 20 + $this->q; // VIOLATION - Local
for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
$r += $this->q;
}
}
}
Source https://phpmd.org/rules/naming.html#shortvariable
The property $_module_name is not named in camelCase. Open
class Vtiger_Cache
{
private static $selfInstance = false;
public static $cacheEnable = true;
protected $connector;
- Read upRead up
- Exclude checks
CamelCasePropertyName
Since: 0.2
It is considered best practice to use the camelCase notation to name attributes.
Example
class ClassName {
protected $property_name;
}
Source
The property $_user_id is not named in camelCase. Open
class Vtiger_Cache
{
private static $selfInstance = false;
public static $cacheEnable = true;
protected $connector;
- Read upRead up
- Exclude checks
CamelCasePropertyName
Since: 0.2
It is considered best practice to use the camelCase notation to name attributes.
Example
class ClassName {
protected $property_name;
}
Source
Avoid variables with short names like $id. Configured minimum length is 3. Open
public function hasOwnerName($id)
- Read upRead up
- Exclude checks
ShortVariable
Since: 0.2
Detects when a field, local, or parameter has a very short name.
Example
class Something {
private $q = 15; // VIOLATION - Field
public static function main( array $as ) { // VIOLATION - Formal
$r = 20 + $this->q; // VIOLATION - Local
for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
$r += $this->q;
}
}
}
Source https://phpmd.org/rules/naming.html#shortvariable
Avoid variables with short names like $id. Configured minimum length is 3. Open
public function setOwnerName($id, $value)
- Read upRead up
- Exclude checks
ShortVariable
Since: 0.2
Detects when a field, local, or parameter has a very short name.
Example
class Something {
private $q = 15; // VIOLATION - Field
public static function main( array $as ) { // VIOLATION - Formal
$r = 20 + $this->q; // VIOLATION - Local
for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
$r += $this->q;
}
}
}
Source https://phpmd.org/rules/naming.html#shortvariable
Avoid variables with short names like $id. Configured minimum length is 3. Open
public function hasOwnerDbName($id)
- Read upRead up
- Exclude checks
ShortVariable
Since: 0.2
Detects when a field, local, or parameter has a very short name.
Example
class Something {
private $q = 15; // VIOLATION - Field
public static function main( array $as ) { // VIOLATION - Formal
$r = 20 + $this->q; // VIOLATION - Local
for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
$r += $this->q;
}
}
}
Source https://phpmd.org/rules/naming.html#shortvariable
The property $_user_list is not named in camelCase. Open
class Vtiger_Cache
{
private static $selfInstance = false;
public static $cacheEnable = true;
protected $connector;
- Read upRead up
- Exclude checks
CamelCasePropertyName
Since: 0.2
It is considered best practice to use the camelCase notation to name attributes.
Example
class ClassName {
protected $property_name;
}
Source
The property $_group_list is not named in camelCase. Open
class Vtiger_Cache
{
private static $selfInstance = false;
public static $cacheEnable = true;
protected $connector;
- Read upRead up
- Exclude checks
CamelCasePropertyName
Since: 0.2
It is considered best practice to use the camelCase notation to name attributes.
Example
class ClassName {
protected $property_name;
}
Source
The property $_field_instance is not named in camelCase. Open
class Vtiger_Cache
{
private static $selfInstance = false;
public static $cacheEnable = true;
protected $connector;
- Read upRead up
- Exclude checks
CamelCasePropertyName
Since: 0.2
It is considered best practice to use the camelCase notation to name attributes.
Example
class ClassName {
protected $property_name;
}
Source
The property $_group_id is not named in camelCase. Open
class Vtiger_Cache
{
private static $selfInstance = false;
public static $cacheEnable = true;
protected $connector;
- Read upRead up
- Exclude checks
CamelCasePropertyName
Since: 0.2
It is considered best practice to use the camelCase notation to name attributes.
Example
class ClassName {
protected $property_name;
}
Source
Avoid variables with short names like $id. Configured minimum length is 3. Open
public function getOwnerDbName($id)
- Read upRead up
- Exclude checks
ShortVariable
Since: 0.2
Detects when a field, local, or parameter has a very short name.
Example
class Something {
private $q = 15; // VIOLATION - Field
public static function main( array $as ) { // VIOLATION - Formal
$r = 20 + $this->q; // VIOLATION - Local
for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
$r += $this->q;
}
}
}
Source https://phpmd.org/rules/naming.html#shortvariable
The property $_picklist_details is not named in camelCase. Open
class Vtiger_Cache
{
private static $selfInstance = false;
public static $cacheEnable = true;
protected $connector;
- Read upRead up
- Exclude checks
CamelCasePropertyName
Since: 0.2
It is considered best practice to use the camelCase notation to name attributes.
Example
class ClassName {
protected $property_name;
}
Source
The property $_owners_db_names_list is not named in camelCase. Open
class Vtiger_Cache
{
private static $selfInstance = false;
public static $cacheEnable = true;
protected $connector;
- Read upRead up
- Exclude checks
CamelCasePropertyName
Since: 0.2
It is considered best practice to use the camelCase notation to name attributes.
Example
class ClassName {
protected $property_name;
}
Source
The property $_admin_user_id is not named in camelCase. Open
class Vtiger_Cache
{
private static $selfInstance = false;
public static $cacheEnable = true;
protected $connector;
- Read upRead up
- Exclude checks
CamelCasePropertyName
Since: 0.2
It is considered best practice to use the camelCase notation to name attributes.
Example
class ClassName {
protected $property_name;
}
Source
The property $_block_fields is not named in camelCase. Open
class Vtiger_Cache
{
private static $selfInstance = false;
public static $cacheEnable = true;
protected $connector;
- Read upRead up
- Exclude checks
CamelCasePropertyName
Since: 0.2
It is considered best practice to use the camelCase notation to name attributes.
Example
class ClassName {
protected $property_name;
}
Source
The parameter $GroupList is not named in camelCase. Open
public function setGroupList($module, $GroupList, $currentUser)
{
if (self::$cacheEnable) {
self::$_group_list[$currentUser][$module] = $GroupList;
}
- Read upRead up
- Exclude checks
CamelCaseParameterName
Since: 0.2
It is considered best practice to use the camelCase notation to name parameters.
Example
class ClassName {
public function doSomething($user_name) {
}
}
Source
Property name "$_picklist_details" should not be prefixed with an underscore to indicate visibility Open
private static $_picklist_details;
- Exclude checks
Property name "$_group_list" should not be prefixed with an underscore to indicate visibility Open
private static $_group_list;
- Exclude checks
Property name "$_user_list" should not be prefixed with an underscore to indicate visibility Open
private static $_user_list;
- Exclude checks
Property name "$_block_fields" should not be prefixed with an underscore to indicate visibility Open
private static $_block_fields;
- Exclude checks
Property name "$_user_id" should not be prefixed with an underscore to indicate visibility Open
private static $_user_id;
- Exclude checks
Property name "$_admin_user_id" should not be prefixed with an underscore to indicate visibility Open
private static $_admin_user_id = false;
- Exclude checks
Property name "$_module_ownedby" should not be prefixed with an underscore to indicate visibility Open
private static $_module_ownedby;
- Exclude checks
Property name "$_group_id" should not be prefixed with an underscore to indicate visibility Open
private static $_group_id;
- Exclude checks
Property name "$_name_fields" should not be prefixed with an underscore to indicate visibility Open
private static $_name_fields;
- Exclude checks
Property name "$_table_exists" should not be prefixed with an underscore to indicate visibility Open
private static $_table_exists;
- Exclude checks
Property name "$_field_instance" should not be prefixed with an underscore to indicate visibility Open
private static $_field_instance;
- Exclude checks
Property name "$_picklist_id" should not be prefixed with an underscore to indicate visibility Open
private static $_picklist_id;
- Exclude checks
Property name "$_module_name" should not be prefixed with an underscore to indicate visibility Open
private static $_module_name = [];
- Exclude checks
Property name "$_owners_names_list" should not be prefixed with an underscore to indicate visibility Open
private static $_owners_names_list;
- Exclude checks
Property name "$_owners_db_names_list" should not be prefixed with an underscore to indicate visibility Open
private static $_owners_db_names_list;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public static $cacheEnable = true;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if (self::$selfInstance) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return self::$selfInstance;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$self->connector->flush();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if (isset(self::$_group_list[$currentUser][$module])) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
private function __construct()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if (isset(self::$_user_list[$currentUser][$module])) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
self::$_user_list[$currentUser][$module] = $userList;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if (self::$cacheEnable) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
private static $_picklist_details;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return self::$_picklist_details[$module][$field];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function setPicklistDetails($module, $field, $picklistDetails)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
self::$_picklist_details[$module][$field] = $picklistDetails;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$self = self::getInstance();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function getGroupList($module, $currentUser)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if (isset(self::$_picklist_details[$module][$field])) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
self::$selfInstance = new self();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return false;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public static function set($ns, $key, $value)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public static function get($ns, $key)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return self::$_user_list[$currentUser][$module];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function getPicklistDetails($module, $field)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
private static $_user_list;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function setUserList($module, $userList, $currentUser)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
private static $_group_list;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
private static $_module_ownedby;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return false;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return false;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function setGroupList($module, $GroupList, $currentUser)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return self::$selfInstance;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if ($key && self::$cacheEnable) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return $self->connector->get($ns, $key);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$self->connector->set($ns, $key, $value);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
self::$_group_list[$currentUser][$module] = $GroupList;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
private static $selfInstance = false;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->connector = Vtiger_Cache_Connector::getInstance();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public static function getInstance()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$self = self::getInstance();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public static function flush()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if (self::$cacheEnable) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return self::$_group_list[$currentUser][$module];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if (self::$cacheEnable) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function getModuleOwned($module)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
self::$_admin_user_id = $userId;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return self::$_module_name[$moduleId];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if (self::$cacheEnable) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
self::$_name_fields[$module] = $nameFields;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
} else {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$self = self::getInstance();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return false;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if (isset(self::$_module_ownedby[$module])) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
private static $_admin_user_id = false;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if (isset(self::$_module_name[$moduleId])) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if (self::$cacheEnable) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if (isset(self::$_table_exists[$tableName])) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
self::$_table_exists[$tableName] = $exists;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function getGroupId($groupName)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if (self::$cacheEnable) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if (self::$cacheEnable) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if (isset(self::$_group_id[$groupName])) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
private static $_name_fields;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return self::$_field_instance[$moduleId][$field];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return false;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return self::$_admin_user_id;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if (self::$cacheEnable) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if (self::$cacheEnable) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return false;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
self::$_field_instance[$moduleId][$field] = $instance;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function getUserId($userName)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return false;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function setBlockFields($block, $module, $fields)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return self::$_name_fields[$module];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function setNameFields($module, $nameFields)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if (self::$cacheEnable) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
protected $connector;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if (self::$cacheEnable) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function getUserList($module, $currentUser)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
private static $_field_instance;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return self::$_picklist_id[$moduleName][$fieldName];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if (isset(self::$_block_fields[$module][$block])) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
self::$_block_fields[$module][$block] = $fields;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return self::$_owners_db_names_list[$id];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return false;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return $value !== false;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function getModuleName($moduleId)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function setModuleName($moduleId, $moduleName)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function setPicklistId($fieldName, $moduleName, $picklistId)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function setGroupId($groupName, $groupId)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
private static $_module_name = [];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
self::$_module_name[$moduleId] = $moduleName;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return self::$_user_id[$userName];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
private static $_picklist_id;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function getPicklistId($fieldName, $moduleName)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function getBlockFields($block, $module)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return self::$_block_fields[$module][$block];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function hasOwnerName($id)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function getFieldInstance($field, $moduleId)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function setFieldInstance($field, $moduleId, $instance)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
private static $_table_exists;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
self::$_group_id[$groupName] = $groupId;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
private static $_block_fields;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return false;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return self::$_module_ownedby[$module];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return $this->connector->get('purify', $key);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return false;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
self::$_owners_names_list[$id] = $value;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if (isset(self::$_owners_db_names_list[$id])) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function setOwnerDbName($id, $value)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return self::$_table_exists[$tableName];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function setTableExists($tableName, $exists)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function purifyGet($key)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if (self::$cacheEnable) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if (self::$cacheEnable) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function getAdminUserId()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
//cache for the module Instance
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->connector->set('purify', $key, $value);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if (isset(self::$_owners_names_list[$id])) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return self::$_owners_names_list[$id];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function hasOwnerDbName($id)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
self::$_module_ownedby[$module] = $ownedby;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if (self::$cacheEnable) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
self::$_picklist_id[$moduleName][$fieldName] = $picklistId;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if (self::$cacheEnable) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function getNameFields($module)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if (isset(self::$_name_fields[$module])) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return $value !== false;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
self::$_owners_db_names_list[$id] = $value;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function setModuleOwned($module, $ownedby)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function setAdminUserId($userId)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return false;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function setUserId($userName, $userId)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
self::$_user_id[$userName] = $userId;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return self::$_group_id[$groupName];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if (self::$cacheEnable) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return false;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$value = $this->getOwnerName($id);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if (isset(self::$_field_instance[$moduleId][$field])) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return false;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if (isset(self::$_picklist_id[$moduleName][$fieldName])) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if (self::$cacheEnable) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if (self::$cacheEnable) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return false;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if (isset(self::$_user_id[$userName])) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return false;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function getOwnerName($id)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
private static $_user_id;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function getTableExists($tableName)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
private static $_group_id;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function getOwnerDbName($id)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return false;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function purifySet($key, $value)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
private static $_owners_names_list;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function setOwnerName($id, $value)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
private static $_owners_db_names_list;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$value = $this->getOwnerDbName($id);
- Exclude checks
Class name "Vtiger_Cache" is not in camel caps format Open
class Vtiger_Cache
- Exclude checks
The variable $_user_list is not named in camelCase. Open
public function setUserList($module, $userList, $currentUser)
{
if (self::$cacheEnable) {
self::$_user_list[$currentUser][$module] = $userList;
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_field_instance is not named in camelCase. Open
public function getFieldInstance($field, $moduleId)
{
if (isset(self::$_field_instance[$moduleId][$field])) {
return self::$_field_instance[$moduleId][$field];
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_module_name is not named in camelCase. Open
public function getModuleName($moduleId)
{
if (isset(self::$_module_name[$moduleId])) {
return self::$_module_name[$moduleId];
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_user_id is not named in camelCase. Open
public function getUserId($userName)
{
if (isset(self::$_user_id[$userName])) {
return self::$_user_id[$userName];
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_owners_db_names_list is not named in camelCase. Open
public function setOwnerDbName($id, $value)
{
if (self::$cacheEnable) {
self::$_owners_db_names_list[$id] = $value;
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_module_name is not named in camelCase. Open
public function getModuleName($moduleId)
{
if (isset(self::$_module_name[$moduleId])) {
return self::$_module_name[$moduleId];
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_group_id is not named in camelCase. Open
public function getGroupId($groupName)
{
if (isset(self::$_group_id[$groupName])) {
return self::$_group_id[$groupName];
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_block_fields is not named in camelCase. Open
public function getBlockFields($block, $module)
{
if (isset(self::$_block_fields[$module][$block])) {
return self::$_block_fields[$module][$block];
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_group_list is not named in camelCase. Open
public function getGroupList($module, $currentUser)
{
if (isset(self::$_group_list[$currentUser][$module])) {
return self::$_group_list[$currentUser][$module];
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_table_exists is not named in camelCase. Open
public function getTableExists($tableName)
{
if (isset(self::$_table_exists[$tableName])) {
return self::$_table_exists[$tableName];
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_group_id is not named in camelCase. Open
public function setGroupId($groupName, $groupId)
{
if (self::$cacheEnable) {
self::$_group_id[$groupName] = $groupId;
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_block_fields is not named in camelCase. Open
public function getBlockFields($block, $module)
{
if (isset(self::$_block_fields[$module][$block])) {
return self::$_block_fields[$module][$block];
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_table_exists is not named in camelCase. Open
public function setTableExists($tableName, $exists)
{
if (self::$cacheEnable) {
self::$_table_exists[$tableName] = $exists;
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_field_instance is not named in camelCase. Open
public function setFieldInstance($field, $moduleId, $instance)
{
if (self::$cacheEnable) {
self::$_field_instance[$moduleId][$field] = $instance;
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_module_name is not named in camelCase. Open
public function setModuleName($moduleId, $moduleName)
{
if (self::$cacheEnable) {
self::$_module_name[$moduleId] = $moduleName;
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_user_id is not named in camelCase. Open
public function setUserId($userName, $userId)
{
if (self::$cacheEnable) {
self::$_user_id[$userName] = $userId;
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_name_fields is not named in camelCase. Open
public function getNameFields($module)
{
if (isset(self::$_name_fields[$module])) {
return self::$_name_fields[$module];
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_name_fields is not named in camelCase. Open
public function setNameFields($module, $nameFields)
{
if (self::$cacheEnable) {
self::$_name_fields[$module] = $nameFields;
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_owners_names_list is not named in camelCase. Open
public function setOwnerName($id, $value)
{
if (self::$cacheEnable) {
self::$_owners_names_list[$id] = $value;
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_group_list is not named in camelCase. Open
public function setGroupList($module, $GroupList, $currentUser)
{
if (self::$cacheEnable) {
self::$_group_list[$currentUser][$module] = $GroupList;
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_name_fields is not named in camelCase. Open
public function getNameFields($module)
{
if (isset(self::$_name_fields[$module])) {
return self::$_name_fields[$module];
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_owners_names_list is not named in camelCase. Open
public function getOwnerName($id)
{
if (isset(self::$_owners_names_list[$id])) {
return self::$_owners_names_list[$id];
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_owners_names_list is not named in camelCase. Open
public function getOwnerName($id)
{
if (isset(self::$_owners_names_list[$id])) {
return self::$_owners_names_list[$id];
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_picklist_details is not named in camelCase. Open
public function getPicklistDetails($module, $field)
{
if (isset(self::$_picklist_details[$module][$field])) {
return self::$_picklist_details[$module][$field];
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_picklist_id is not named in camelCase. Open
public function getPicklistId($fieldName, $moduleName)
{
if (isset(self::$_picklist_id[$moduleName][$fieldName])) {
return self::$_picklist_id[$moduleName][$fieldName];
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_picklist_id is not named in camelCase. Open
public function setPicklistId($fieldName, $moduleName, $picklistId)
{
if (self::$cacheEnable) {
self::$_picklist_id[$moduleName][$fieldName] = $picklistId;
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $GroupList is not named in camelCase. Open
public function setGroupList($module, $GroupList, $currentUser)
{
if (self::$cacheEnable) {
self::$_group_list[$currentUser][$module] = $GroupList;
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_picklist_details is not named in camelCase. Open
public function setPicklistDetails($module, $field, $picklistDetails)
{
if (self::$cacheEnable) {
self::$_picklist_details[$module][$field] = $picklistDetails;
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_module_ownedby is not named in camelCase. Open
public function getModuleOwned($module)
{
if (isset(self::$_module_ownedby[$module])) {
return self::$_module_ownedby[$module];
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_user_list is not named in camelCase. Open
public function getUserList($module, $currentUser)
{
if (isset(self::$_user_list[$currentUser][$module])) {
return self::$_user_list[$currentUser][$module];
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_user_list is not named in camelCase. Open
public function getUserList($module, $currentUser)
{
if (isset(self::$_user_list[$currentUser][$module])) {
return self::$_user_list[$currentUser][$module];
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_group_list is not named in camelCase. Open
public function getGroupList($module, $currentUser)
{
if (isset(self::$_group_list[$currentUser][$module])) {
return self::$_group_list[$currentUser][$module];
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_picklist_id is not named in camelCase. Open
public function getPicklistId($fieldName, $moduleName)
{
if (isset(self::$_picklist_id[$moduleName][$fieldName])) {
return self::$_picklist_id[$moduleName][$fieldName];
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_owners_db_names_list is not named in camelCase. Open
public function getOwnerDbName($id)
{
if (isset(self::$_owners_db_names_list[$id])) {
return self::$_owners_db_names_list[$id];
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_owners_db_names_list is not named in camelCase. Open
public function getOwnerDbName($id)
{
if (isset(self::$_owners_db_names_list[$id])) {
return self::$_owners_db_names_list[$id];
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_table_exists is not named in camelCase. Open
public function getTableExists($tableName)
{
if (isset(self::$_table_exists[$tableName])) {
return self::$_table_exists[$tableName];
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_group_id is not named in camelCase. Open
public function getGroupId($groupName)
{
if (isset(self::$_group_id[$groupName])) {
return self::$_group_id[$groupName];
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_field_instance is not named in camelCase. Open
public function getFieldInstance($field, $moduleId)
{
if (isset(self::$_field_instance[$moduleId][$field])) {
return self::$_field_instance[$moduleId][$field];
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_user_id is not named in camelCase. Open
public function getUserId($userName)
{
if (isset(self::$_user_id[$userName])) {
return self::$_user_id[$userName];
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_picklist_details is not named in camelCase. Open
public function getPicklistDetails($module, $field)
{
if (isset(self::$_picklist_details[$module][$field])) {
return self::$_picklist_details[$module][$field];
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_module_ownedby is not named in camelCase. Open
public function getModuleOwned($module)
{
if (isset(self::$_module_ownedby[$module])) {
return self::$_module_ownedby[$module];
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_module_ownedby is not named in camelCase. Open
public function setModuleOwned($module, $ownedby)
{
if (self::$cacheEnable) {
self::$_module_ownedby[$module] = $ownedby;
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_block_fields is not named in camelCase. Open
public function setBlockFields($block, $module, $fields)
{
if (self::$cacheEnable) {
self::$_block_fields[$module][$block] = $fields;
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}