Пример #1
0
 /**
  * Constructor.
  *
  * @param string $name Name of the field
  * @param int $flags Flags for this attribute.
  *
  * @return UpdatedByAttribute
  */
 public function __construct($name, $flags = 0)
 {
     $flags = $flags | self::AF_READONLY | self::AF_HIDE_ADD;
     parent::__construct($name, $flags, Config::getGlobal('auth_usernode'));
     $this->setForceInsert(true);
     $this->setForceUpdate(true);
 }
Пример #2
0
 /**
  * Constructor.
  *
  * @param string $name Name of the attribute
  * @param int $flags Flags for the relation
  * @param string $destination Destination node for this relation
  *
  */
 public function __construct($name, $flags = 0, $destination)
 {
     parent::__construct($name, $flags, $destination);
 }