__construct() public méthode

public __construct ( )
Exemple #1
0
 public function __construct($term = null, $scheme = null, $label = null)
 {
     parent::__construct();
     $this->_term = $term;
     $this->_scheme = $scheme;
     $this->_label = $label;
 }
Exemple #2
0
 public function __construct($name = null, $email = null, $uri = null)
 {
     parent::__construct();
     $this->_name = $name;
     $this->_email = $email;
     $this->_uri = $uri;
 }
Exemple #3
0
 public function __construct($id = null, $href = null, $when = null)
 {
     parent::__construct();
     $this->_id = $id;
     $this->_href = $href;
     $this->_when = $when;
 }
Exemple #4
0
 public function __construct($text = null, $uri = null, $version = null)
 {
     parent::__construct();
     $this->_text = $text;
     $this->_uri = $uri;
     $this->_version = $version;
 }
 /**
  * Constructs a new Zend_Gdata_Extension_RecurrenceException object.
  * @param bool $specialized (optional) Whether this is a specialized exception or not.
  * @param Zend_Gdata_EntryLink (optional) An Event entry with details about the exception.
  * @param Zend_Gdata_OriginalEvent (optional) The origianl recurrent event this is an exeption to.
  */
 public function __construct($specialized = null, $entryLink = null, $originalEvent = null)
 {
     parent::__construct();
     $this->_specialized = $specialized;
     $this->_entryLink = $entryLink;
     $this->_originalEvent = $originalEvent;
 }
Exemple #6
0
 public function __construct($rootElement = null, $rootNamespace = null, $rootNamespaceURI = null, $text = null)
 {
     parent::__construct();
     $this->_rootElement = $rootElement;
     $this->_rootNamespace = $rootNamespace;
     $this->_rootNamespaceURI = $rootNamespaceURI;
     $this->_text = $text;
 }
Exemple #7
0
 public function __construct($href = null, $rel = null, $readOnly = null, $entry = null)
 {
     parent::__construct();
     $this->_href = $href;
     $this->_readOnly = $readOnly;
     $this->_rel = $rel;
     $this->_entry = $entry;
 }
Exemple #8
0
 public function __construct($startTime = null, $endTime = null, $valueString = null, $reminders = null)
 {
     parent::__construct();
     $this->_startTime = $startTime;
     $this->_endTime = $endTime;
     $this->_valueString = $valueString;
     $this->_reminders = $reminders;
 }
Exemple #9
0
 public function __construct($valueString = null, $label = null, $rel = null, $entryLink = null)
 {
     parent::__construct();
     $this->_valueString = $valueString;
     $this->_label = $label;
     $this->_rel = $rel;
     $this->_entryLink = $entryLink;
 }
Exemple #10
0
 public function __construct($href = null, $rel = null, $countHint = null, $readOnly = null, $feed = null)
 {
     parent::__construct();
     $this->_countHint = $countHint;
     $this->_href = $href;
     $this->_readOnly = $readOnly;
     $this->_rel = $rel;
     $this->_feed = $feed;
 }
Exemple #11
0
 public function __construct($absoluteTime = null, $method = null, $days = null, $hours = null, $minutes = null)
 {
     parent::__construct();
     $this->_absoluteTime = $absoluteTime;
     $this->_method = $method;
     $this->_days = $days;
     $this->_hours = $hours;
     $this->_minutes = $minutes;
 }
Exemple #12
0
 /**
  * Constructs a new Zend_Gdata_Extension_Rating object.
  *
  * @param integer $average (optional) Average rating.
  * @param integer $min (optional) Minimum rating.
  * @param integer $max (optional) Maximum rating.
  * @param integer $numRaters (optional) Number of raters.
  * @param integer $value (optional) The value of the rating.
  */
 public function __construct($average = null, $min = null, $max = null, $numRaters = null, $value = null)
 {
     parent::__construct();
     $this->_average = $average;
     $this->_min = $min;
     $this->_max = $max;
     $this->_numRaters = $numRaters;
     $this->_value = $value;
 }
 public function __construct()
 {
     parent::__construct();
     // Validate request passes XSRF checks if extension is enabled.
     $status = Symphony::ExtensionManager()->fetchStatus(array("handle" => "xsrf_protection"));
     if (in_array(EXTENSION_ENABLED, $status) || in_array(EXTENSION_REQUIRES_UPDATE, $status)) {
         XSRF::validateRequest();
     }
 }
Exemple #14
0
 /**
  * Constructs a new Zend_Gdata_Extension_Who object.
  * @param string $email (optional) Email address.
  * @param string $rel (optional) Relationship description.
  * @param string $valueString (optional) Simple string describing this person.
  * @param \Zend\GData\Extension\AttendeeStatus $attendeeStatus (optional) The status of the attendee.
  * @param \Zend\GData\Extension\AttendeeType $attendeeType (optional) The type of the attendee.
  * @param string $entryLink URL pointing to an associated entry (Contact kind) describing this person.
  */
 public function __construct($email = null, $rel = null, $valueString = null, $attendeeStatus = null, $attendeeType = null, $entryLink = null)
 {
     parent::__construct();
     $this->_email = $email;
     $this->_rel = $rel;
     $this->_valueString = $valueString;
     $this->_attendeeStatus = $attendeeStatus;
     $this->_attendeeType = $attendeeType;
     $this->_entryLink = $entryLink;
 }
Exemple #15
0
 public function __construct($href = null, $rel = null, $type = null, $hrefLang = null, $title = null, $length = null)
 {
     parent::__construct();
     $this->_href = $href;
     $this->_rel = $rel;
     $this->_type = $type;
     $this->_hrefLang = $hrefLang;
     $this->_title = $title;
     $this->_length = $length;
 }
 public function __construct()
 {
     parent::__construct();
     Requirements::block("photogallery/shadowbox/shadowbox.css");
     Requirements::block("http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js");
     Requirements::block("photogallery/shadowbox/shadowbox.js");
     Requirements::block("photogallery/js/shadowbox_init.js");
     Requirements::CSS("silverstripe-video-embed/assests/javascript/shadowbox/shadowbox.css");
     Requirements::javascript("http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js");
     Requirements::javascript("silverstripe-video-embed/assests/javascript/shadowbox/shadowbox.js");
     Requirements::javascriptTemplate('silverstripe-video-embed/assests/javascript/shadowbox_init.js', array());
 }
 /**
  *
  */
 public function __construct()
 {
     parent::__construct();
     $appId = Config::inst()->get('FacebookControllerExtension', 'app_id');
     $secret = Config::inst()->get('FacebookControllerExtension', 'api_secret');
     if (!$appId || !$secret) {
         return null;
     }
     FacebookSession::setDefaultApplication($appId, $secret);
     if (session_status() !== PHP_SESSION_ACTIVE) {
         Session::start();
     }
 }
Exemple #18
0
 /**
  * @see http://symphony-cms.com/learn/api/2.2/toolkit/extension/#__construct
  */
 public function __construct(array $args)
 {
     parent::__construct($args);
     // Include Stage
     if (!class_exists('Stage')) {
         try {
             if ((include_once EXTENSIONS . '/datetime/lib/stage/class.stage.php') === FALSE) {
                 throw new Exception();
             }
         } catch (Exception $e) {
             throw new SymphonyErrorPage(__('Please make sure that the Stage submodule is initialised and available at %s.', array('<code>' . EXTENSIONS . '/datetime/lib/stage/</code>')) . '<br/><br/>' . __('It\'s available at %s.', array('<a href="https://github.com/nilshoerrmann/stage">github.com/nilshoerrmann/stage</a>')), __('Stage not found'));
         }
     }
 }
 /**
  * @see http://symphony-cms.com/learn/api/2.3/toolkit/extension/#__construct
  */
 public function __construct(array $args)
 {
     parent::__construct($args);
     // Prepare cache
     if (file_exists(CACHE . '/subsectionmanager-storage')) {
         // If Data Source files have not changed, get cache
         if (filemtime(DATASOURCES) < filemtime(CACHE . '/subsectionmanager-storage')) {
             $cache = unserialize(file_get_contents(CACHE . '/subsectionmanager-storage'));
         }
         // Check store cache
         if (!empty($cache)) {
             self::$storage['fields'] = $cache['fields'];
             self::$updateCache = false;
         }
     }
 }
Exemple #20
0
 /**
  * Constructor
  *
  * Reads project's and default .ini file, sets project handler's 
  * and initializes paths.
  * @param location config file
  */
 public function __construct()
 {
     parent::__construct();
     $this->configFile = strtolower(__CLASS__ . ".ini");
     $this->template = array();
     $this->templateFile = "intrusion.tpl";
     $this->basePath = realpath(dirname(__FILE__) . "/../") . "/";
     $this->intrusionUpdated = false;
     $this->pagesize = 20;
     $this->log = Logger::getInstance();
     $this->sqlParser->setSelect('select');
     $this->sqlParser->setTable('intrusion', 'a');
     $this->sqlParser->addField(new SqlField('a', 'intr_ip', 'ip', 'Ip address', SqlParser::getTypeSelect() | SqlParser::getTypeModify() | SqlParser::PKEY, SqlField::TYPE_STRING, true));
     $this->sqlParser->addField(new SqlField('a', 'intr_permanent', 'permanent', 'Permanent', SqlParser::getTypeSelect() | SqlParser::getTypeModify(), SqlField::TYPE_BOOLEAN));
     $this->sqlParser->addField(new SqlField('a', 'intr_count', 'count', 'Intrusion attempts', SqlParser::getTypeSelect() | SqlParser::getTypeModify(), SqlField::TYPE_INTEGER, true));
     $this->sqlParser->addField(new SqlField('a', 'intr_create', 'createdate', 'Created', SqlParser::getTypeSelect() | SqlParser::MOD_INSERT, SqlField::TYPE_DATE, true));
     $this->sqlParser->addField(new SqlField('a', 'intr_ts', 'ts', 'Modified', SqlParser::getTypeSelect(), SqlField::TYPE_DATE));
     //add new view types
     $view = ViewManager::getInstance();
     $view->insert(self::VIEW_OVERVIEW, 'Overview');
     $view->insert(self::VIEW_NEW, 'New');
     $view->insert(self::VIEW_EDIT, 'Edit');
     $view->insert(self::VIEW_DELETE, 'Delete');
 }
 public function __construct()
 {
     parent::__construct();
     Requirements::css(COLLAPSABLE_WIDGETS_BASE . '/css/CollapsibleWidgets.css');
     Requirements::javascript(COLLAPSABLE_WIDGETS_BASE . '/javascript/CollapsibleWidgets.js');
 }
 public function __construct()
 {
     parent::__construct();
     $this->team_repository = new SapphireTeamRepository();
 }
Exemple #23
0
 public function __construct($rel = null, $feedLink = null)
 {
     parent::__construct();
     $this->_rel = $rel;
     $this->_feedLink = $feedLink;
 }
 public function __construct()
 {
     parent::__construct();
 }
 /**
  *
  */
 public function __construct()
 {
     parent::__construct();
     $this->manager = new DupesMembersManager(new SapphireDupesMemberRepository(), new DupeMemberMergeRequestFactory(), new DupeMemberDeleteRequestFactory(), new SapphireDupeMemberMergeRequestRepository(), new SapphireDupeMemberDeleteRequestRepository(), new SapphireDeletedDupeMemberRepository(), new DeletedDupeMemberFactory(), new SapphireCandidateNominationRepository(), new SapphireNotMyAccountActionRepository(), new NotMyAccountActionFactory(), SapphireTransactionManager::getInstance(), SapphireBulkQueryRegistry::getInstance());
 }
 public function __construct()
 {
     parent::__construct();
     $this->config = new DIM_Base();
 }
Exemple #27
0
 public function __construct($name = null, $value = null)
 {
     parent::__construct();
     $this->_name = $name;
     $this->_value = $value;
 }
 public function __construct($text = null)
 {
     parent::__construct();
     $this->_text = $text;
 }
 public function __construct()
 {
     parent::__construct();
     $this->company_repository = new SapphireICLACompanyRepository();
 }
 public function __construct()
 {
     parent::__construct();
     $this->repository = new SapphireEventRegistrationRequestRepository();
     $this->event_repository = new SapphireEventRepository();
 }