Exemplo n.º 1
0
 /**
  * Constructor
  * @param Registry $registry
  * @param int $id
  * @return void
  */
 public function __construct(Registry $registry, $id = 0, $user)
 {
     $this->registry = $registry;
     parent::setTypeReference('image');
     parent::__construct($this->registry, $id);
     $this->username = $this->getUsername($user);
 }
Exemplo n.º 2
0
 /**
  * Constructor
  * @param Registry $registry
  * @param int $id
  * @return void
  */
 public function __construct(Registry $registry, $id = 0)
 {
     $this->registry = $registry;
     parent::__construct($this->registry, $id);
     parent::setTypeReference('link');
 }