예제 #1
0
 /**
  * @param Record $record in static mode
  * @param array options  array('repository' => 'twitter', 'primaryKey' => 'customer_id')
  */
 public function __construct($model, $options = array())
 {
     parent::__construct();
     $this->handle_filenames_without_extension = true;
     $this->model = $model;
     foreach ($options as $option => $value) {
         $this->{$option} = $value;
     }
 }
예제 #2
0
 public function __construct($imagesFolder, $targetFolder = null)
 {
     parent::__construct();
     $this->imagesFolder = $imagesFolder;
     if ($targetFolder == null) {
         $targetFolder = \Sledgehammer\TMP_DIR . 'ThumbnailFolder/' . basename($imagesFolder) . '_' . substr(md5($imagesFolder), 8, 16) . '/';
     }
     $this->targetFolder = $targetFolder;
 }
예제 #3
0
 function __construct($subdomain)
 {
     $this->subdomain = $subdomain;
     parent::__construct();
 }
예제 #4
0
 public function __construct()
 {
     parent::__construct();
     $this->publicMethods = array_diff($this->publicMethods, array('handleRequest', 'generateDocument', 'statusbar', 'initLanguage', 'isWrapable'));
     // Een aantal functies *niet* public maken
 }