48 lines
1.3 KiB
PHP
48 lines
1.3 KiB
PHP
|
|
<?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 Initial Developer of the Original Code is vtiger.
|
||
|
|
* Portions created by vtiger are Copyright (C) vtiger.
|
||
|
|
* All Rights Reserved.
|
||
|
|
*************************************************************************************/
|
||
|
|
|
||
|
|
class Settings_Colorizer_Record_Model extends Settings_Vtiger_Record_Model {
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Function to get Id of this record instance
|
||
|
|
* @return <Integer> Id
|
||
|
|
*/
|
||
|
|
public function getId() {
|
||
|
|
return $this->get('id');
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Function to get Name of this record instance
|
||
|
|
* @return <String> Name
|
||
|
|
*/
|
||
|
|
public function getName() {
|
||
|
|
return $this->get('name');
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Function to get module of this record instance
|
||
|
|
* @return <Settings_Webforms_Module_Model> $moduleModel
|
||
|
|
*/
|
||
|
|
public function getModule() {
|
||
|
|
return $this->module;
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Function to set module instance to this record instance
|
||
|
|
* @param <Settings_Webforms_Module_Model> $moduleModel
|
||
|
|
* @return <Settings_Webforms_Record_Model> this record
|
||
|
|
*/
|
||
|
|
public function setModule($moduleModel) {
|
||
|
|
$this->module = $moduleModel;
|
||
|
|
return $this;
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
}
|