Esempio n. 1
0
 /**
  * {@inheritDoc}
  */
 public function getEntity()
 {
     $entity = new VirtualEntity();
     $entity->setPerPageCount($this->get('per_page_count', 20), VirtualEntity::FILTER_INT)->setCoverWidth($this->get('cover_width', 200), VirtualEntity::FILTER_INT)->setCoverHeight($this->get('cover_height', 200), VirtualEntity::FILTER_INT);
     return $entity;
 }
Esempio n. 2
0
 /**
  * {@inheritDoc}
  */
 public function getEntity()
 {
     $entity = new VirtualEntity();
     $entity->setPerPageCount($this->get('per_page_count', 10), VirtualEntity::FILTER_INT);
     return $entity;
 }
Esempio n. 3
0
 /**
  * {@inheritDoc}
  */
 public function getEntity()
 {
     $entity = new VirtualEntity();
     $entity->setPerPageCount($this->get('per_page_count', 5), VirtualEntity::FILTER_INT)->setMaxDescriptionLength($this->get('max_description_length', 100), VirtualEntity::FILTER_INT);
     return $entity;
 }
Esempio n. 4
0
 /**
  * {@inheritDoc}
  */
 public function getEntity()
 {
     $entity = new VirtualEntity();
     $entity->setPerPageCount($this->get('photos_per_page', 5), VirtualEntity::FILTER_INT)->setWidth($this->get('thumb_width', 200), VirtualEntity::FILTER_FLOAT)->setHeight($this->get('thumb_height', 200), VirtualEntity::FILTER_FLOAT)->setMaxHeight($this->get('max_img_height', 200), VirtualEntity::FILTER_FLOAT)->setMaxWidth($this->get('max_img_width', 200), VirtualEntity::FILTER_FLOAT)->setQuality($this->get('quality', 75), VirtualEntity::FILTER_FLOAT)->setLanguageSupport($this->get('language_support'), VirtualEntity::FILTER_BOOL)->setAlbumThumbWidth($this->get('album_thumb_width', 200), VirtualEntity::FILTER_FLOAT)->setAlbumThumbHeight($this->get('album_thumb_height', 200), VirtualEntity::FILTER_FLOAT)->setLanguageSupportOptions(array('0' => 'One photogallery version for all languages', '1' => 'Each language must have its own photogallery version'));
     return $entity;
 }