modules/ModTracker/models/Field.php
Reference to undeclared property \ModTracker_Field_Model->parent
Open
Open
return $this->parent;
- Exclude checks
Saw possibly unextractable annotation for a fragment of comment '* @param Vtiger_Field_Model':
after Vtiger_Field_Model,
did not see an element name (will guess based on comment order) Open
Open
* @param Vtiger_Field_Model
- Exclude checks
Reference to undeclared property \ModTracker_Field_Model->parent
Open
Open
return $this->fieldInstance->getUITypeModel()->getHistoryDisplayValue($this->get('postvalue'), $this->parent);
- Exclude checks
Reference to undeclared property \ModTracker_Field_Model->fieldInstance
Open
Open
return $this->fieldInstance->getUITypeModel()->getHistoryDisplayValue($this->get('prevalue'), $this->parent);
- Exclude checks
Returning type false
but getModuleName()
is declared to return string
Open
Open
return $this->getParent()->getModule()->getName();
- Exclude checks
Reference to undeclared property \ModTracker_Field_Model->parent
(Did you mean $parent) Open
Open
$this->parent = $parent;
- Exclude checks
Reference to undeclared property \ModTracker_Field_Model->parent
Open
Open
return $this->fieldInstance->getUITypeModel()->getHistoryDisplayValue($this->get('prevalue'), $this->parent);
- Exclude checks
Reference to undeclared property \ModTracker_Field_Model->fieldInstance
Open
Open
return $this->fieldInstance;
- Exclude checks
Saw possibly unextractable annotation for a fragment of comment '* @param Vtiger_Record_Model':
after Vtiger_Record_Model,
did not see an element name (will guess based on comment order) Open
Open
* @param Vtiger_Record_Model
- Exclude checks
Reference to undeclared property \ModTracker_Field_Model->fieldInstance
Open
Open
return $this->fieldInstance->getUITypeModel()->getHistoryDisplayValue($this->get('postvalue'), $this->parent);
- Exclude checks
Reference to undeclared property \ModTracker_Field_Model->fieldInstance
Open
Open
$this->fieldInstance = $fieldModel;
- Exclude checks
Each class must be in a namespace of at least one level (a top-level vendor name) Open
Open
class ModTracker_Field_Model extends Vtiger_Record_Model
- Exclude checks
The class ModTracker_Field_Model is not named in CamelCase. Open
Open
class ModTracker_Field_Model extends Vtiger_Record_Model
{
/**
* Function to set parent to this model.
*
- 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
Spaces must be used to indent lines; tabs are not allowed Open
Open
* Function to set parent to this model.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
* @param mixed $fieldModel
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
return $this->fieldInstance->getUITypeModel()->getHistoryDisplayValue($this->get('postvalue'), $this->parent);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
* Function to get parent.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
* @return Vtiger_Field_Model
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
* Function returns the module name of the field.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public function getModuleName(): string
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$this->parent = $parent;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public function getName(): string
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
* @param mixed $parent
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
return $this->fieldInstance;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public function getNewValue()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$this->fieldInstance = $fieldModel;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
return $this->parent;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public function getFieldInstance()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
* @return string
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
* @return string
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
* Function to get name.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
* @return Vtiger_Record_Model
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
* Function to set Field instance.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
* Function to get Field instance.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
* Function to get Old value of this Field.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
* @param Vtiger_Field_Model
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
* Function to get new(updated) value of this Field.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
return $this->getParent()->getModule()->getName();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
* @return string
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
* @return string
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public function getOldValue()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public function setParent($parent)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public function setFieldInstance($fieldModel)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
return $this->getFieldInstance()->get('label');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
* @param Vtiger_Record_Model
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public function getParent()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
return $this;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
return $this;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
return $this->fieldInstance->getUITypeModel()->getHistoryDisplayValue($this->get('prevalue'), $this->parent);
- Exclude checks
Class name "ModTracker_Field_Model" is not in camel caps format Open
Open
class ModTracker_Field_Model extends Vtiger_Record_Model
- Exclude checks