Exemplo n.º 1
0
 /**
  * The atkHiddenAttribute has a custom constructor. It's purpose is to force the self::AF_HIDE
  * flag, regardless of flags passed. Its behaviour is identical to atkDummyAttribute's
  * constructor in every other way.
  *
  * @param string $name
  * @param int $flags
  * @param string $text
  */
 public function __construct($name, $flags = 0, $text = '')
 {
     $flags |= self::AF_HIDE;
     parent::__construct($name, $flags, $text);
 }
Exemplo n.º 2
0
 /**
  * Constructor.
  *
  * @param string $name Name of the attribute
  * @param int $flags Flags for this attribute
  */
 public function __construct($name, $flags = 0)
 {
     $flags = $flags | self::AF_HIDE_VIEW | self::AF_HIDE_EDIT | self::AF_HIDE_ADD;
     parent::__construct($name, $flags, '');
 }