/** The constructor of the class. */
 function __construct(knj_gallery_group $knj_gallery_group, $id, $data = null)
 {
     $this->knj_gallery_group = $knj_gallery_group;
     $this->knj_gallery = $knj_gallery_group->getKNJGallery();
     $this->dbconn = $this->knj_gallery->getDBConn();
     parent::__construct($this->dbconn, "pictures", $id, $data);
 }
 /** The constructor. */
 function __construct($knjgallery, $id, $data = null)
 {
     $this->knj_gallery = $knjgallery;
     $this->dbconn = $knjgallery->getDBConn();
     parent::__construct($this->dbconn, "views", $id, $data);
     if ($this->get("active") != "yes") {
         $this->reloadPics();
     }
 }
 function getObInsertSQL(knjdb_row $row)
 {
     $data = $row->getAsArray();
     $table = $row->getTable();
     return $this->getArrInsertSQL($table->get("name"), $data);
 }
Example #4
0
	function __construct($args = array()){
		parent::__construct(array(
			"db" => $args["db"],
			"data" => $args["data"],
			"table" => "translations"
		));
		$this->ob = $args["ob"];
		if (!$this->ob){
      throw new exception("No ob was given.");
		}
	}
 /** The constructor. */
 function __construct($knj_gallery, $id, $data = null)
 {
     $this->knj_gallery = $knj_gallery;
     $this->dbconn = $knj_gallery->getDBConn();
     parent::__construct($this->dbconn, "persons", $id, $data);
 }
		function __construct($id, $data){
			parent::__construct(gDB(), "folders", $id, $data);
		}