Ejemplo n.º 1
0
 /**
  * Constructor.
  *
  * @param int $id The Image id.
  */
 public function __construct($id)
 {
     $id = assert_int($id);
     $rs = safe_row("*", 'txp_image', "id = {$id} LIMIT 1");
     if ($rs) {
         extract($rs);
         $this->m_ext = $ext;
         $this->m_id = $id;
     }
     parent::__construct();
 }
Ejemplo n.º 2
0
 /**
  * Constructor.
  *
  * @param int $id The Image id.
  */
 public function __construct($id)
 {
     $id = assert_int($id);
     $rs = safe_row('*', 'txp_image', 'id = ' . $id . ' limit 1');
     if ($rs) {
         extract($rs);
         $this->m_ext = $ext;
         $this->m_id = $id;
     }
     parent::__construct();
 }