function __construct() { Parent::__construct(); Validator::extend('total', function ($attribute, $value, $parameters, $validator) { $value != 100 ? $check = false : ($check = true); return $check; }); }
public function __construct($id, $link, $urlPath, $title) { Parent::__construct(); $this->id = $id; $this->link = $link; $this->urlPath = $urlPath; $this->title = $title; }
public function __construct(array $properties = [], array $options = []) { Parent::__construct($properties, $options); $split_foreign = explode(':', $this->_properties['foreign_id']); if (sizeof($split_foreign) == 2) { $this->foreign_type = $split_foreign[0]; $this->foreign_id = $split_foreign[1]; } }
/** * Constructor for Programme Round objects. If available, the constructor can use * a controller that's already there. * * @since 0.1.0 * @access public * @param object $post Collaboration post object. * @param object $controller optional CollaborationController object. **/ public function __construct($post, $context = '', $controller = null) { Parent::__construct($post); $this->controller->map_programme_round_basics(); if ('griditem' === $context) { $this->controller->set_block_paragraph_text(); $this->controller->set_cta_colour(); } }
/** * Constructor for story objects. Sets controller property. * * @since 0.1.0 * @access public * @param object $post Story post object. * @param string $context Context, to allow for partial mapping. **/ public function __construct($post, $context = '', $controller = null) { Parent::__construct($post, $controller); $this->controller->map_story_basics(); if ('griditem' !== $context) { $this->controller->set_ordered_tag_list(); $this->controller->map_full_story(); } }
public function __construct(array $properties = [], array $options = []) { Parent::__construct($properties, $options); if ($this->activities) { $this->_properties['first_user_id'] = $this->activities[0]['first_user_id']; $this->_properties['second_user_id'] = $this->activities[0]['second_user_id']; $this->_properties['type'] = $this->activities[0]['type'] . '-aggregated'; $this->_properties['time'] = $this->activities[0]['time']; $this->_properties['first_user_record'] = [0, 0, 0]; $this->_properties['second_user_record'] = [0, 0, 0]; $this->_properties['has_scored'] = false; //both currently dependent on generateCharts being called, no good $this->_properties['has_no_scored'] = false; usort($this->activities, function ($a, $b) { return strtotime($a['time']) - strtotime($b['time']); }); foreach ($this->activities as $key => $activity) { $this->activities[$key] = new FeedItem($this->activities[$key]); } //set first user id/name/imagee //set second user id/name/image //in aggregated feeditem } }
function __construct($path = '') { $this->path = $this->getPathStorage($path); Parent::__construct(); }
public function __construct() { Parent::__construct(); $this->beforeFilter('csrf', ['on' => 'post']); $this->beforeFilter('admin'); }
public function __construct($route = array()) { Parent::__construct($route); $this->_validate_route(); }
public function __construct() { Parent::__construct(); $this->beforeFilter('admin'); }
public function __construct($name, $scholling) { Parent::__construct($name); $this->scholling = $scholling; }
/** * Constructor. * * @param string $appId * @param string $appSecret * @param string $format 'json', 'xml' or 'simple_xml' */ public function __construct($appId, $appSecret, $format = 'json') { Parent::__construct($appId, $appSecret, $format = 'json'); }
/** * Constructor for participant objects. * * @since 0.1.0 * @access public * @param object $postobj Participant post object. **/ public function __construct($post, $context = '', $controller = null) { Parent::__construct($post); $this->controller->map_participant_basics($post); }
public function __construct() { Parent::__construct(); //$this->beforeFilter('csrf',['on'=>'post']); $this->beforeFilter('auth', ['only' => ['postAddtocart', 'getCart', 'getCheckout', 'postCheckout']]); }
public function __construct($file, $args) { Parent::__construct($file, $args); }
public function __construct(Router $router) { Parent::__construct($router); $this->_validate_route(); }
public function __construct($router) { $this->_model_object = new TestModel(); Parent::__construct($router); }
public function __construct($positionX, $positionY) { Parent::__construct($positionX, $positionY); $this->setLifeforce(1); }
public function __construct() { Parent::__construct(); }
/** * Constructor for collaboration objects. * * @since 0.1.0 * @access public * @param object $post Collaboration post object. * @param string $context Optional. Added context for modifications. * @param object $controller Optional. Add existing controller if you want. **/ public function __construct($post, $context = '', $controller = null) { Parent::__construct($post, $controller); // Add standard WordPress data $this->controller->map_collaboration_basics(); // Add featured image. if (!in_array($context, array('token-form', 'griditem', 'simplemap'))) { $this->controller->map_full_collaboration(); } }