c90dc06af2
As PHP 8 introduces a built-in Attribute class, a name clash occurs without this commit. Class names are used by the Visitor class to dynamically build method names. To avoid having to also rename the target methods, a class name mapping is introduced for this purpose. This map may be augmented whenever another similar case occurs.
36 lines
586 B
PHP
36 lines
586 B
PHP
<?php
|
|
/**
|
|
* Classes and functions for the template engine.
|
|
*
|
|
* @author The phpLDAPadmin development team
|
|
* @package phpLDAPadmin
|
|
*/
|
|
|
|
/**
|
|
* Represents a attribute whose values are multiline text
|
|
*
|
|
* @package phpLDAPadmin
|
|
* @subpackage Templates
|
|
*/
|
|
class MultiLineAttribute extends PLAAttribute {
|
|
protected $rows = 0;
|
|
protected $cols = 0;
|
|
|
|
public function getRows() {
|
|
return $this->rows;
|
|
}
|
|
|
|
public function setRows($rows) {
|
|
$this->rows = $rows;
|
|
}
|
|
|
|
public function getCols() {
|
|
return $this->cols;
|
|
}
|
|
|
|
public function setCols($cols) {
|
|
$this->cols = $cols;
|
|
}
|
|
}
|
|
?>
|