public function __construct(Ansel_Gallery $gallery, $images = array()) { $this->_gallery = $gallery; $this->_modeHelper = new Ansel_GalleryMode_Date($this); $this->data = $this->_gallery->data; $this->_images = $images; }