You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
923 B
PHP
38 lines
923 B
PHP
<?php
|
|
|
|
namespace Artmark\Forms;
|
|
|
|
use Artmark\Forms\Attributes\VisibleAttributes;
|
|
use Artmark\Forms\Attributes\RequiredAttribute;
|
|
use Artmark\Forms\Attributes\ReadOnlyAttribute;
|
|
use Artmark\Forms\Attributes\DisabledAttribute;
|
|
|
|
/**
|
|
* Description of AbstractVisibleField
|
|
*
|
|
* @author Andrey Pokidov <pokidov@e-traffic.ru>
|
|
*/
|
|
abstract class AbstractVisibleField extends AbstractField
|
|
{
|
|
use VisibleAttributes, RequiredAttribute, ReadOnlyAttribute, DisabledAttribute;
|
|
|
|
/**
|
|
*
|
|
* @return array
|
|
*/
|
|
public function getAssociativeAttributes()
|
|
{
|
|
$attributes = parent::getAssociativeAttributes();
|
|
|
|
$this->appendVisibleAttributes($attributes);
|
|
|
|
$this->appendRequiredAttribute($attributes);
|
|
|
|
$this->appendReadOnlyAttribute($attributes);
|
|
|
|
$this->appendDisabledAttribute($attributes);
|
|
|
|
return $attributes;
|
|
}
|
|
}
|