/** * @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; } }
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; }
function __construct($subdomain) { $this->subdomain = $subdomain; parent::__construct(); }
public function __construct() { parent::__construct(); $this->publicMethods = array_diff($this->publicMethods, array('handleRequest', 'generateDocument', 'statusbar', 'initLanguage', 'isWrapable')); // Een aantal functies *niet* public maken }