public function __construct(array $config = array()) { if (isset($config['protoPackage']) && $config['protoPackage'] instanceof Sitengine_Proto) { $this->_protoPackage = $config['protoPackage']; $this->_name = $this->_protoPackage->getShouldiesTableName(); $this->_primary = 'id'; parent::__construct($config); $this->_files[self::FILE1ORIGINAL_ID] = array(); $this->_files[self::FILE1THUMBNAIL_ID] = array(); $this->_files[self::FILE1FITTED_ID] = array(); $this->_files[self::FILE2ORIGINAL_ID] = array(); $this->_files[self::FILE2THUMBNAIL_ID] = array(); $this->_files[self::FILE2FITTED_ID] = array(); #$transColor = $this->_protoPackage->getRequest()->getPost('transColor'); # upload 1 $this->_configs[self::FILE1ORIGINAL_ID] = array('dir' => $this->_protoPackage->getShouldyFile1OriginalDir(), 'mode' => 0644); $this->_configs[self::FILE1THUMBNAIL_ID] = array('dir' => $this->_protoPackage->getShouldyFile1ThumbnailDir(), 'mode' => 0644, 'length' => 100, 'method' => 'width', 'jpgQuality' => 100, 'transColor' => null); $this->_configs[self::FILE1FITTED_ID] = array('dir' => $this->_protoPackage->getShouldyFile1FittedDir(), 'mode' => 0644, 'length' => 400, 'method' => 'width', 'jpgQuality' => 100, 'transColor' => null); # upload 2 $this->_configs[self::FILE2ORIGINAL_ID] = array('dir' => $this->_protoPackage->getShouldyFile2OriginalDir(), 'mode' => 0644); $this->_configs[self::FILE2THUMBNAIL_ID] = array('dir' => $this->_protoPackage->getShouldyFile2ThumbnailDir(), 'mode' => 0644, 'length' => 100, 'method' => 'width', 'jpgQuality' => 100, 'transColor' => null); $this->_configs[self::FILE2FITTED_ID] = array('dir' => $this->_protoPackage->getShouldyFile2FittedDir(), 'mode' => 0644, 'length' => 400, 'method' => 'width', 'jpgQuality' => 100, 'transColor' => null); } else { require_once 'Sitengine/Proto/Exception.php'; throw new Sitengine_Proto_Exception('shouldies table class init error'); } }
public function __construct(array $config = array()) { if (isset($config['permiso']) && $config['permiso'] instanceof Sitengine_Permiso) { $this->_permiso = $config['permiso']; $this->_name = $this->_permiso->getGroupsTableName(); $this->_primary = 'id'; parent::__construct($config); } else { require_once 'Sitengine/Permiso/Exception.php'; throw new Sitengine_Permiso_Exception('groups table class init error'); } }
public function __construct(array $config = array()) { if (isset($config['blogPackage']) && $config['blogPackage'] instanceof Sitengine_Blog) { $this->_blogPackage = $config['blogPackage']; $this->_name = $this->_blogPackage->getBlogsTableName(); $this->_primary = 'id'; parent::__construct($config); } else { require_once 'Sitengine/Blog/Exception.php'; throw new Sitengine_Blog_Exception('blogs table class init error'); } }
public function __construct(array $config = array()) { if (isset($config['newsletterPackage']) && $config['newsletterPackage'] instanceof Sitengine_Newsletter) { $this->_newsletterPackage = $config['newsletterPackage']; $this->_name = $this->_newsletterPackage->getCampaignsTableName(); $this->_primary = 'id'; parent::__construct($config); } else { require_once 'Sitengine/Newsletter/Exception.php'; throw new Sitengine_Newsletter_Exception('campaigns table class init error'); } }
public function __construct(array $config = array()) { if (isset($config['permiso']) && $config['permiso'] instanceof Sitengine_Permiso) { $this->_permiso = $config['permiso']; $this->_name = $this->_permiso->getUsersTableName(); $this->_primary = 'id'; parent::__construct($config); $this->_files[self::AVATAR_ORIGINAL] = array(); $this->_files[self::AVATAR_THUMB] = array(); # upload config $this->_configs[self::AVATAR_ORIGINAL] = array('dir' => $this->_permiso->getUserAvatarOriginalDir(), 'mode' => 0644); $this->_configs[self::AVATAR_THUMB] = array('dir' => $this->_permiso->getUserAvatarThumbDir(), 'mode' => 0644, 'length' => 160, 'method' => 'width', 'jpgQuality' => 100); } else { require_once 'Sitengine/Permiso/Exception.php'; throw new Sitengine_Permiso_Exception('users table class init error'); } }