Source for file CurrencyEditor.class.php
Documentation is available at CurrencyEditor.class.php
* Содержит класс CurrencyEditor
* @copyright ColoCall 2006
//require_once('core/modules/share/components/Grid.class.php');
* Класс предназначен для редактирования перечня валюты
* @param Document $document
public function __construct($name, $module, Document $document, array $params = null) {
parent::__construct($name, $module, $document, $params);
$fd = $result->getFieldDescriptionByName('curr_abbr');
$fd = $result->getFieldDescriptionByName('curr_is_main')->removeProperty('nullable');
protected function edit(){
if($this->getData()->getFieldByName('curr_is_main')->getRowData(0)){
$this->dbh->modifyRequest('UPDATE '. $this->getTableName(). ' SET curr_is_main = NULL');
|