KN YUR RE
League of Legends (LoL) is a multiplayer online battle arena (MOBA) videogame by Riot Games. The primary game mode for LoL is Summoner’s Rift (also the name of the arena’s map), in which two teams of five players vie to destroy their opponents’ base, called the Nexus. For more detailed information about the game, please see League of Legends on Wikipedia.
Each player in a match chooses one of 141 unique avatars, called champions, to represent them, and each champion has its own unique blend of attributes, skills, and abilities. Each one of these 141 champions is classified into one of six categories: assassin, fighter, mage, marksman, support, or tank.
Additionally, each player on each competing team in a match plays one of five standard team roles: Top Laner, Jungler, Middle (Mid) Laner, Bottom Lane (Botlane) Carry, or Support. While each role performs specific duties, each can also be identified by its location on the map near the beginning of a match.
The Top Laners traverse along the dirt path that travels along the west and north perimeters of the map. Near the start of the match they usually combat enemy minions and each other at the northwest corner of the map. This type of combat at the beginning of the match is called the Laning Phase.
The Mid Laners traverse along the dirt path that cuts straight across the diagonal of the map connecting the two opposing bases. They, too, combat enemy minions and each other during the Laning Phase, where they typically compete right at the center of the map.
The Botlane Carries and Supports traverse along the dirt path that travels along the south and east perimeters of the map. Their laning phase typically occurs at the southeast corner of the map. The Botlane Carries deliver damage to their opponents and enemy minions, while the Supports play an auxiliary role by providing protection to their botlane teammates.
Finally, the Junglers traverse in the forest-like areas between the three lanes. One team’s jungle is in the west and south “triangles”, while the other team’s is in the north and east triangular areas. During the Laning Phase the Junglers are combating the monsters that inhabit these areas. They may occasionally encounter each other, especially if one Jungler “invades” their opponents’ jungle areas.
Therefore, it’s nearly as easy to identify team roles in a League of Legends match as it is to identify the nine positions of the defensive players in a baseball game. The botlane is a little trickier, since both Carries and Supports are there, but by observing their behaviors during the laning phase the two roles are fairly simple to distinguish.


We're sorry but <%= webpackConfig.name %> doesn't work properly without JavaScript enabled. Please enable it to continue.
页面拼命加载中...


Get all data- attributes into an object. All data attributes will be converted to camel case.
data-
Code


JavaScript Setup
We streamlined how you implement Foundation plugins by combining them into a single plugin under the $.fn.foundation()
jQuery namespace.
Installation
Foundation JavaScript was designed to work with jQuery right out of the gate. In the
section of your page add Modernizr. Modernizr acts as a shim for HTML5 elements that older browsers may not recognize, and provides detection for mobile devices:

Before the closing body
tag, insert JQuery and FastClick.
HTML

Then either load each plugin individually, or include foundation.min.js
, which automatically loads the Foundation Core and all JavaScript plugins.
HTML

Initialize Foundation
After you have included the Foundation JavaScript, just add a simple call to initialize all plugins on your page.
We recommend that you initialize Foundation at the end of the page
.
HTML

Note: We include a tested version of jQuery in the Foundation repo to get you started quickly.
Adding New Content After Page Load
If you add new content after the page has been loaded, you will need to reinitialize the Foundation JavaScript by running the following:
$(document).foundation();
Reflow will make Foundation check the DOM for any elements and re-apply any listeners to them.
$(document).foundation('reflow');
To be efficient, target the actual Foundation plugin you need to reflow
:
$(document).foundation('orbit', 'reflow');
or
$(document).foundation('tab', 'reflow');
or
$(document).foundation('interchange', 'reflow');
etc...
Configuration
Foundation offers you options to customize plugin initialization. By default, calling $('#scope').foundation();
will initialize all available plugins on the page. Alternatively, you can pass individual plugins along with configuration options and a callback. This way, you can select which plugins you want to customize, and which are fine by default. You can take a look at the call here:
$(document).foundation({tab: {toggleable: false}});
The call will initialize all the plugins on the page and will configure tabs with toggleable
enabled.
You can configure multiple libraries within the same call as well. Here are a few ways to make it happen:
JS
$(document).foundation({
reveal : {
animation_speed: 500
},
tooltip : {
disable_for_touch: true
},
topbar : {
custom_back_text: false,
is_hover: false,
mobile_show_parent_link: true
}
});
The above will initialize all of the plugins with default settings as well as customized settings for reveal
, tooltip
, and topbar
.
Data Options
Instead of passing the settings to the plugins using JavaScript, you can pass them through the markup using data-options
. To pass in an option, just place it in the data-options
HTML attribute of the element the plugin is being called on. To pass in multiple options, format them as a semicolon-delimited list:
Has Tooltip
A chart of of all the available data-options is below.
| Abide | live_validate | true |
| validate_on_blur | true | |
| focus_on_invalid | true | |
| error_labels | true | |
| timeout | 1000 | |
| Accordion | content_class | 'content' |
| active_class | 'active' | |
| multi_expand | false | |
| toggleable | true | |
| Clearing | close_selectors | '.clearing-close' |
| open_selectors | '' | |
| skip_selector | '' | |
| touch_label | '← Swipe to Advance →' | |
| Dropdown | active_class | 'open' |
| is_hover | false | |
| Interchange | load_attr | 'interchange' |
| Joyride | expose | false |
| modal | true | |
| keyboard | true | |
| tip_location | 'bottom' | |
| nub_position | 'auto' | |
| scroll_speed | 1500 | |
| scroll_animation | 'linear' | |
| timer | 0 | |
| start_timer_on_click | true | |
| start_offset | 0 | |
| next_button | true | |
| prev_button | true | |
| tip_animation | 'fade' | |
| pause_after | [] | |
| exposed | [] | |
| tip_animation_fade_speed | 300 | |
| cookie_monster | false | |
| cookie_name | 'joyride' | |
| cookie_domain | false | |
| cookie_expires | 365 | |
| tip_container | 'body' | |
| expose_add_class | '' | |
| Magellan | active_class | 'active' |
| threshold | 0 | |
| destination_threshold | 20 | |
| throttle_delay | 50 | |
| fixed_top | 0 | |
| offset_by_height | true | |
| OffCanvas | open_method | 'move' |
| close_on_click | false | |
| Orbit | animation | 'slide' |
| timer_speed | 10000 | |
| pause_on_hover | true | |
| resume_on_mouseout | false | |
| next_on_click | true | |
| animation_speed | 500 | |
| stack_on_small | false | |
| navigation_arrows | true | |
| slide_number | true | |
| slide_number_text | 'of' | |
| container_class | 'orbit-container' | |
| stack_on_small_class | 'orbit-stack-on-small' | |
| next_class | 'orbit-next' | |
| prev_class | 'orbit-prev' | |
| timer_container_class | 'orbit-timer' | |
| timer_paused_class | 'paused' | |
| timer_progress_class | 'orbit-progress' | |
| slides_container_class | 'orbit-slides-container' | |
| preloader_class | 'preloader' | |
| slide_selector | '*' | |
| bullets_container_class | 'orbit-bullets' | |
| bullets_active_class | 'active' | |
| slide_number_class | 'orbit-slide-number' | |
| caption_class | 'orbit-caption' | |
| active_slide_class | 'active' | |
| orbit_transition_class | 'orbit-transitioning' | |
| bullets | true | |
| circular | true | |
| timer | true | |
| variable_height | false | |
| swipe | true | |
| Reveal | animation | 'fadeAndPop' |
| animation_speed | 250 | |
| close_on_background_click | true | |
| close_on_esc | true | |
| dismiss_modal_class | 'close-reveal-modal' | |
| multiple_opened | false | |
| bg_class | 'reveal-modal-bg' | |
| root_element | 'body' | |
| bg | $('.reveal-modal-bg') | |
| Sliders | start | 0 |
| end | 100 | |
| step | 1 | |
| initial | 1 | |
| vertical | true | |
| display_selector | '#sliderOutput' | |
| Tab | active_class | 'active' |
| is_hover | false | |
| Tooltip | selector | '.has-tip' |
| additional_inheritable_classes | [] | |
| tooltip_class | '.tooltip' | |
| append_to | 'body' | |
| touch_close_text | 'Tap To Close' | |
| disable_for_touch | false | |
| hover_delay | 50 | |
| Topbar | index | 0 |
| sticky_class | 'sticky' | |
| custom_back_text | true | |
| back_text | 'Back' | |
| is_hover | true | |
| mobile_show_parent_link | false | |
| scrolltop | true | Plugin Name | Setting | Default Value |
Configure on the fly
New to Foundation 5, you can now reconfigure instances of your plugin after the page has loaded and Foundation has already been initialized.
Let's pretend that we have an alert that was on our page when Foundation was first initialized:
HTML

This is a standard alert.
×

The default fade out speed is 300 milliseconds, if we wanted to change this to 3 seconds we could do the following:
JS
$('#myAlert').foundation({alert: {speed: 3000}});
You can set any configuration option or callback this way.
Calling Internal Methods
Foundation JavaScript allows you call internal plugin methods by passing the method name as the second argument. This is necessary for plugins like Joyride, which are not initialized on page load by default.
This will fire the start
method on Joyride:
JS
$(document).foundation('joyride', 'start');


const data = [
{name: 'Tomas', marks: [10, 5, 8, 4, 6]},
{name: 'Ieva', marks: [3, 7, 9, 1]},
{name: 'Pranas', marks: [7, 10, 8]},
{name: 'Daiva', marks: [2, 9, 8, 1, 6]},
{name: 'Aurelija', marks: [5, 6, 8, 7, 6]},
]


 Then share it with me on twitter. {% endblock %} {% block scripts %} {% endblock %}
Draw picture of how this makes you feel. Then share it with me on twitter.


|
STEP 3: Adding the Checkbox Sounds
|
Now we start getting to the exciting stuff. We will add sonification behaviors to all the checkboxes in the form. Try clicking on a few of the checkboxes. You will notice that checking a checkbox results in a different sound than unchecking a checkbox. This gives the user a sensible audio cue that links them in a stronger way to the form they are interacting with.
For the sound that plays when a checkbox is checked, we have chosen the Groovoid "UI-Click7", which has a distinctly decisive sound about it. On the other hand, for unchecking a checkbox we have chosen the Groovoid "UI-Click6", which almost sounds like the checking sound in reverse. It has that feeling of something being undone or erased - wiped clean.
Now, let's take a look at the HTML source code for this step. All the code that has been added since the previous step is highlighted in red. As you scan through the source code, take note of the functions that have been added as well as the event handlers that have been defined for the checkbox form elements.
  <FORM NAME="productForm" METHOD=GET ACTION="thanks.html">

    Blue Bass & the Neurotic Fishes
   -- Merchandise --

   1. Select your poison...
 <INPUT TYPE=checkbox NAME=tshirt ONCLICK="checkboxSound (this)"> T-shirt ($15.95)

 Color	  <SELECT NAME=tshirtColor> <OPTION>Oil Slick Black <OPTION>Spiritual White <OPTION SELECTED>Blood Clot Red <OPTION>Summer Sky Blue <OPTION>Underwater Aqua <OPTION>Radioactive Green <OPTION>Militia Khaki <OPTION>Neon Pink </SELECT>

 Size	  <INPUT TYPE=radio NAME=tshirtSize>Small <INPUT TYPE=radio NAME=tshirtSize CHECKED>Medium <INPUT TYPE=radio NAME=tshirtSize>Large <INPUT TYPE=radio NAME=tshirtSize>X-Large <INPUT TYPE=radio NAME=tshirtSize>XX-Large

 <INPUT TYPE=checkbox NAME=mug ONCLICK="checkboxSound (this)"> Commemorative Reunion Mug ($19.95) - with printed mugshot of a band member of your choice

 Band Member	  <SELECT NAME=mugPicture> <OPTION SELECTED>Blue Bass (lead vocals & bass guitar) <OPTION>Alec Littlefish (lead guitar & vocals) <OPTION>Joe "The Octopus" Malone (drums & percussion) <OPTION>Humphrey Proudfin (keyboards & vocals) <OPTION>Gill Stronglung (harmony vocals) <OPTION>Neville "The Blowfish" Ohrensborg (sax & horns) </SELECT>

 Mug Size	  <SELECT NAME=mugSize> <OPTION>Diet Size (9 Fl.Oz.) <OPTION SELECTED>Average Stomach (12 Fl.Oz) <OPTION>Big Mama (20 Fl.Oz) </SELECT>

 Albums ($15.95 each)
 <INPUT TYPE=checkbox NAME=album1989 ONCLICK="checkboxSound (this)"> Underwater Blues (released 1989)
 <INPUT TYPE=checkbox NAME=album1991 ONCLICK="checkboxSound (this)"> The Suffocating Sky (released 1991)
 <INPUT TYPE=checkbox NAME=album1992 ONCLICK="checkboxSound (this)"> Suckerfish Rising (released 1992)
 <INPUT TYPE=checkbox NAME=album1994 ONCLICK="checkboxSound (this)"> Psychedelic Abyss (released 1994)
 <INPUT TYPE=checkbox NAME=album1997 ONCLICK="checkboxSound (this)"> The Little Fish That Could (released 1997)
 <INPUT TYPE=checkbox NAME=album1998 ONCLICK="checkboxSound (this)"> Have You Eaten Fish Today (new release)

   2. Pay for the poison...

 Type of Credit Card	  <INPUT TYPE=radio NAME=creditCardType>American Express <INPUT TYPE=radio NAME=creditCardType CHECKED>VISA <INPUT TYPE=radio NAME=creditCardType>Mastercard

 *Name on Credit Card	 <INPUT TYPE=text SIZE=30 NAME=creditCardName>

 *Credit Card Number	 <INPUT TYPE=text SIZE=30 NAME=creditCardNumber>

 Expiration Date	  <SELECT NAME=creditCardExpirationYear> <OPTION SELECTED>1998 <OPTION>1999 <OPTION>2000 <OPTION>2001 <OPTION>2002 <OPTION>2003 <OPTION>2004 </SELECT> <SELECT NAME=creditCardExpirationMonth> <OPTION SELECTED>01 Jan <OPTION>02 Feb <OPTION>03 Mar <OPTION>04 Apr <OPTION>05 May <OPTION>06 Jun <OPTION>07 Jul <OPTION>08 Aug <OPTION>09 Sep <OPTION>10 Oct <OPTION>11 Nov <OPTION>12 Dec </SELECT>

   3. Deliver the poison...

 Shipping & Handling Option	  <SELECT NAME=shippingOption> <OPTION>US Mail (7 day delivery) <OPTION SELECTED>UPS (2 day delivery) <OPTION>Fedex (overnight delivery) </SELECT>

 *Name	 <INPUT TYPE=TEXT NAME=shippingAddressName SIZE=40>

 *Address Line 1	 <INPUT TYPE=TEXT NAME=shippingAddressLine1 SIZE=40>

 Address Line 2	 <INPUT TYPE=TEXT NAME=shippingAddressLine2 SIZE=40>

 *City	 <INPUT TYPE=TEXT NAME=shippingAddressCity SIZE=40>

 *State (or Province, or Region)	 <INPUT TYPE=TEXT NAME=shippingAddressState SIZE=40>

 *Zip Code (or Postal Code)	 <INPUT TYPE=TEXT NAME=shippingAddressZip SIZE=40>

 *Country	 <INPUT TYPE=TEXT NAME=shippingAddressCountry SIZE=40 VALUE="USA">

 <INPUT TYPE=reset VALUE="Reset and start over">	 <INPUT TYPE=submit VALUE="BUY the poison NOW!!!">

  </FORM>  |
Most significant in the source code listing for this step is the addition of the checkboxSound function. This function is responsible for actually playing the sound when a user clicks on a checkbox, and takes care of deciding whether a "check" or "uncheck" sound should be played, based upon the current state of the checkbox that is being clicked. The function can achieve this dual-purpose behavior because the one parameter that it is receiving, checkboxID, is a handle to the exact checkbox form element being clicked. The function can use this handle to find the new state of the checkbox and play the appropriate Groovoid for either a checked state or an unchecked state.
Now, in order to "wire" each checkbox in the form to play sounds using this function, an ONCLICK event handler has been added to every checkbox in the form. These event handlers are easy to spot in the source code listing, since they have been highlighted in red. Notice how each call to the checkboxSound function is passing this as a parameter. The reserved identifier this in JavaScript is a handle to the current object, which in the scope of a form element's event handler will be a handle to the form element for which the event is occurring. This gives us an easy way to pass the checkboxSound function a handle to the checkbox that is being clicked.
The checkboxSound function then uses the checked property of the checkbox form element to determine if the checkbox has been checked or unchecked. An appropriate Groovoid is then played through the Music Object instance "formSounds" using the play method, and passing just a Groovoid name as a parameter.


Vanessa Hudgens & Ashley Tisdale Reunite For Friendsgiving!
Vanessa Hudgens and Ashley Tisdale reunited to celebrate Friendsgiving!
The High School Musical co-stars stopped by a pal’s home to enjoy dinner together and it looked like the group had a blast!
PHOTOS: Check out the latest pics of Vanessa Hudgens
They were also joined by Vanessa‘s sister Stella and Ashley‘s husband Christopher French.
After the event, Ashley took to her Instagram to share some super cute photos.
“FRIENDSGIVING 🍁,” Ashley captioned the group pic.
We love that Vanessa and Ashley still hang out so often!


JavaScript seems to be disabled in your browser.
You must have JavaScript enabled in your browser to utilize the functionality of this GUI
Raxak Protect
™
Cloud Raxak
|
Contact Us
|
Products
Existing User
Enter a valid email
Forgot Password?
Register New User
Sign In
Sign In With


| DOSE: |
0.125 oz |
oral |
Mushrooms |
(plant material) |
My previous first time affairs with drugs had always been troublesome to say the least. My first Ecstasy experience was very negative yet after using the drug more often and learning from my negative experiences I always thought I had a tight grasp on reality. However this was my first Mushroom trip and I was determined to show myself I could handle it. With a mind set of ignorance and arrogance, I assumed after previous frightening experiences with loss of reality and such, I could take anything that came my way.
In a friends attic bedroom myself, him and another friend sat looking at these strange alien objects that were growing out of a pre-made grow kit ordered from the Internet. We decided to eat four reasonably dry mushrooms and then a fresh one that we plucked from the grow kit at round 9:55 PM. They tasted very distinctive and unpleasant and a glass of water each was necessary to be rid of the lingering taste. Apart from the water and the mushrooms everything else was unprepared, we had no idea what do with no main focus for the night accept getting high. This probably played a large factor in the following events.
After an hour of ingestion (in which time we had ventured the shops to pick up some chewing gum and some spare clothes for my friend) we were back in the house where we first ingested the mushrooms. Firstly, I remember distinctively the way in which my body felt different. Almost as if gravity was gently pushing and pulling my body this way and that. This was followed by some very pleasant euphoric rushes, which reminded me of those experienced from coming up from ecstasy pills. We all began to feel very humorous, laughing randomly for no reason at all.
What followed over the next thirty minutes was perhaps the most amazing experience I've had using drugs. With these constant rushes which changed and varied in intensity came the most fantastic visuals. The whole room came to life, colors and sounds became intensified in time with the music, lights and objects took on new dimensions which made them so interesting I almost felt as though I had entered a different world. I felt childlike once more, taking pleasure in even the most simple objects and patterns. I almost felt reborn, into a much more beautiful world filled with the most amazing lights, sounds and colors. I distinctively remember tribal patterns with Aztec-like faces covering the walls. Objects, materials, patterns all started to sway gently. I felt a new brilliance in life, I could go on forever discribing the things I saw however I'll just say that it was completely unreal and at that point the saying 'A brave new world' took on a very real meaning.
Soon I felt complete ego death, I felt part as though my body was now just another part of this new world. I was lying on a bed and I honestly thought that I had melted and merged with it and was now just a consciousness within the room. The room seemed infinitely huge, my perception of distance and time was altered. I remember sitting on a chair and looking down at the carpet, which seemed to far away inducing the feeling that I was a bird, perched on a ledge high up looking down upon a unfamiliar world.
After around two hours which seemed at the time like much longer, we decided to go down stairs and watch TV. At this point the visuals had worn off, and the trip completely altered its path. Now I felt more awake, wired almost. However my body was completely different, especially touch and hearing. As I sat in the chair, watching the TV I still felt very happy and almost as if I was part of the chair itself. However, we decided to venture out to my house to pick up some money for cigarettes. The walk which soon turned into a paranoid and very unpleasant experience started to worry me. I felt extremely paranoid and anxious, this is when the trip started to become bad...
As we walked, I started thinking about my altered senses and in that I had a horrible realisation that nothing was really how I had always imagined it. The world which I saw all my life was simply fake - it only existed to my physical senses and with that I entered a disturbing train of thought about how the world really was, I was obsessed with this thought - what was objective reality really like? Nothing existed to me anymore, I completely stopped trusting my senses and this was perhaps the worst part of the trip. My metal state started deterioting, I was now in this awful train of thought and started wondering whether I could ever get out off it again. Would I be like this for the rest of my life? Always questioning everything and trusting nothing, not even my own senses. Would I be insane forever I wondered...
After walking up to the Tesco shopping center to buy some ciggies. I started trying to realign myself with reality once more, trying to keep positive thoughts. I keep running through my head that it was all simply the effects of the drugs taking control and falsifying my senses. Once I managed to pull myself out of my mad patterns of thought I decided to leave my friends, who where much in the same mind set as myself and walk home on my own. Things started getting better, although my senses were still incredibly inverted I kept reassuring myself that once the effects of the drugs wore off I my senses would realign back to their natural configuration. Yet there was still that question in the back of my mind that perhaps now I had entered and experienced this insane state of mind, that I would never again return to normality.
At around 3.00PM after watching some wildlife programmes (which were very interesting I might add) I came down back into my normal state of mind pretty quickly. I contemplated the trip as a learning experience. A lesson that things may not be as they seem, and after everything is done there is no truth, only perception.
Experience Reports are the writings and opinions of the individual authors who submit them.
Some of the activities described are dangerous and/or illegal and none are recommended by Erowid.


LOST PETS IN YOUR AREA
Kitty
Cat (species)
09-02-2018
Blauwoogvlinder 25
Black | Furry | Blue Eyes
Reward: $100
Read more...
Balou
Dog (Labrador)
20-02-2018
Baghdad 69
Small | Blond | Brown Eyes
Reward: $0.20
Read more...
Nijntje
Rabbit (species)
day-month-year
adres
short description
Reward
Read more...
de mol
Rabbit (species)
day-month-year
adres
short description
Reward
Read more...


Methods summary
public static
MvcCore\Route
|
#
CreateInstance( string|array $patternOrConfig = NULL, string $controllerAction = NULL, array $defaults = [], array $constraints = [], array $method = NULL )
Create every time new route instance, no singleton managing.
Called usually from core methods:
- \MvcCore\Router::AddRoutes();
- \MvcCore\Router::AddRoute();
- \MvcCore\Router::SetOrCreateDefaultRouteAsCurrent();
This method is the best place where to implement custom route init for
configured core class. First argument could be configuration array with
all necessary constructor values or all separated arguments - first is
route pattern value to parse into match and reverse values, then
controller with action, params default values and constraints.
Example:
new Route([
"pattern" => "/products-list/<name>/<color>",
"controllerAction" => "Products:List",
"defaults" => ["name" => "default-name", "color" => "red"],
"constraints" => ["name" => "[^/]*", "color" => "[a-z]*"]
]);
or:
new Route(
"/products-list/<name>/<color>",
"Products:List",
["name" => "default-name", "color" => "red"],
["name" => "[^/]*", "color" => "[a-z]*"]
);
or:
new Route([
"name" => "products_list",
"match" => "#^/products\-list/(?<name>[^/]*)/(?<color>[a-z]*)(?=/$|$)#",
"reverse" => "/products-list/<name>/<color>",
"controller" => "Products",
"action" => "List",
"defaults" => ["name" => "default-name", "color" => "red"],
]);
Create every time new route instance, no singleton managing.
Called usually from core methods:
- \MvcCore\Router::AddRoutes();
- \MvcCore\Router::AddRoute();
- \MvcCore\Router::SetOrCreateDefaultRouteAsCurrent();
This method is the best place where to implement custom route init for
configured core class. First argument could be configuration array with
all necessary constructor values or all separated arguments - first is
route pattern value to parse into match and reverse values, then
controller with action, params default values and constraints.
Example:
new Route([ "pattern" => "/products-list/<name>/<color>", "controllerAction" => "Products:List", "defaults" => ["name" => "default-name", "color" => "red"], "constraints" => ["name" => "[^/]*", "color" => "[a-z]*"]
]);
or:
new Route( "/products-list/<name>/<color>", "Products:List", ["name" => "default-name", "color" => "red"], ["name" => "[^/]*", "color" => "[a-z]*"]
);
or:
new Route([ "name" => "products_list", "match" => "#^/products\-list/(?<name>[^/]*)/(?<color>[a-z]*)(?=/$|$)#", "reverse" => "/products-list/<name>/<color>", "controller" => "Products", "action" => "List", "defaults" => ["name" => "default-name", "color" => "red"],
]);
Parameters
- $patternOrConfig
Required, configuration array or route pattern value
to parse into match and reverse patterns.
- $controllerAction
Optional, controller and action name in pascal case
like: "Products:List" .
- $defaults
Optional, default param values like:
["name" => "default-name", "page" => 1] .
- $constraints
Optional, params regular expression constraints for
regular expression match function if no "match"
property in config array as first argument defined.
- $method
$advancedConfiguration
Optional, http method to only match requests by this
method. If NULL (by default), request with any http
method could be matched by this route. Given value is
automatically converted to upper case.
Returns
|
public
string|array|null
|
#
GetPattern( )
Get route base pattern to complete match pattern string to match requested
URL and to complete reverse pattern string to build back an URL address.
Get route base pattern to complete match pattern string to match requested
URL and to complete reverse pattern string to build back an URL address.
To define route by this form is the most comfortable way, but a way
slower, because there is necessary every request to convert this value
into match and into reverse properties correctly. But you can specify
those both properties directly, if you can write regular expressions.
This match and reverse definition has to be in very basic form without
regular expression escaping or advanced rules:
- No regular expression border # characters, it's used in match only.
- No start ^ or end $ regular expression chars, also used in match .
- No escaping of regular expression characters: [](){}<>|=+*.!?-/ , those characters will be escaped in route match property.
- Star character inside param name (<color*> ) means greedy param matching all to the end of the URL address. It has to be the last one.
Example: "/products-list/<name>[/<color*>]" .
Returns
string|array|null
|
public
MvcCore\Route
|
#
SetPattern( string|array $pattern )
Set route base pattern to complete match pattern string to match requested
URL and to complete reverse pattern string to build back an URL address.
Set route base pattern to complete match pattern string to match requested
URL and to complete reverse pattern string to build back an URL address.
To define route by this form is the most comfortable way, but a way
slower, because there is necessary every request to convert this value
into match and into reverse properties correctly. But you can specify
those both properties directly, if you can write regular expressions.
This match and reverse definition has to be in very basic form without
regular expression escaping or advanced rules:
- No regular expression border # characters, it's used in match only.
- No start ^ or end $ regular expression chars, also used in match .
- No escaping of regular expression characters: [](){}<>|=+*.!?-/ , those characters will be escaped in route match property.
- Star character inside param name (<color*> ) means greedy param matching all to the end of the URL address. It has to be the last one.
Example: "/products-list/<name>[/<color*>]" .
Parameters
Returns
|
public
string|array|null
|
#
GetMatch( )
Get route match pattern in raw form (to use it as it is) to match requested
URL. This match pattern must have the very same structure and content
as reverse pattern, because there is necessary to complete route flags
from reverse pattern string - to prepare proper regular expression
subject for this match , not just only the request path . Because those
flags is not possible to detect from raw regular expression string.
Get route match pattern in raw form (to use it as it is) to match requested
URL. This match pattern must have the very same structure and content
as reverse pattern, because there is necessary to complete route flags
from reverse pattern string - to prepare proper regular expression
subject for this match , not just only the request path . Because those
flags is not possible to detect from raw regular expression string.
This is required together with route reverse property, if you have not
configured route pattern property instead.
To define the route by assigning properties route match and route
reverse together is little bit more annoying way to define it (because
you have to write almost the same information twice), but it's the best
speed solution, because there is no route internal metadata completion
and pattern parsing into match and reverse properties.
Example: "#^/products\-list/(?<name>[^/]+)(/(?<id>\d+))?/?$#"
Returns
string|array|null
|
public
MvcCore\Route
|
#
SetMatch( string|array $match )
Set route match pattern in raw form (to use it as it is) to match requested
URL. This match pattern must have the very same structure and content
as reverse pattern, because there is necessary to complete route flags
from reverse pattern string - to prepare proper regular expression
subject for this match , not just only the request path . Because those
flags is not possible to detect from raw regular expression string.
Set route match pattern in raw form (to use it as it is) to match requested
URL. This match pattern must have the very same structure and content
as reverse pattern, because there is necessary to complete route flags
from reverse pattern string - to prepare proper regular expression
subject for this match , not just only the request path . Because those
flags is not possible to detect from raw regular expression string.
This is required together with route reverse property, if you have not
configured route pattern property instead.
To define the route by assigning properties route match and route
reverse together is little bit more annoying way to define it (because
you have to write almost the same information twice), but it's the best
speed solution, because there is no route internal metadata completion
and pattern parsing into match and reverse properties.
Example: "#^/products\-list/(?<name>[^/]+)(/(?<id>\d+))?/?$#"
Parameters
Returns
|
public
string|array|null
|
#
GetReverse( )
Get route reverse address replacements pattern to build url.
- No regular expression border # characters.
- No regular expression characters escaping ([](){}<>|=+*.!?-/ ).
- No start ^ or end $ regular expression characters.
Get route reverse address replacements pattern to build url.
- No regular expression border # characters.
- No regular expression characters escaping ([](){}<>|=+*.!?-/ ).
- No start ^ or end $ regular expression characters.
Required together with route match property, if you have not configured
route pattern property instead. This is only very simple string with
variable section definitions defined by brackets [] and with parameters
replacement places (like <name> or <page> ) for given values by
\MvcCore\Router::Url($name, $params); method.
To define the route by assigning properties route match and route
reverse together is little bit more annoying way to define it (because
you have to write almost the same information twice), but it's the best
speed solution, because there is no route internal metadata completion
and pattern parsing into match and reverse properties.
Example: "/products-list/<name>[/<color>]"
Returns
string|array|null
|
public
MvcCore\Route
|
#
SetReverse( string|array $reverse )
Set route reverse address replacements pattern to build url.
- No regular expression border # characters.
- No regular expression characters escaping ([](){}<>|=+*.!?-/ ).
- No start ^ or end $ regular expression characters.
Set route reverse address replacements pattern to build url.
- No regular expression border # characters.
- No regular expression characters escaping ([](){}<>|=+*.!?-/ ).
- No start ^ or end $ regular expression characters.
Required together with route match property, if you have not configured
route pattern property instead. This is only very simple string with
variable section definitions defined by brackets [] and with parameters
replacement places (like <name> or <page> ) for given values by
\MvcCore\Router::Url($name, $params); method.
To define the route by assigning properties route match and route
reverse together is little bit more annoying way to define it (because
you have to write almost the same information twice), but it's the best
speed solution, because there is no route internal metadata completion
and pattern parsing into match and reverse properties.
Example: "/products-list/<name>[/<color>]"
Parameters
Returns
|
public
string|null
|
#
GetName( )
Get route name is your custom keyword/term or pascal case combination of
controller and action describing "Controller:Action" target to be
dispatched. Route name is not required route property.
Get route name is your custom keyword/term or pascal case combination of
controller and action describing "Controller:Action" target to be
dispatched. Route name is not required route property.
By this name there is selected proper route object to complete URL string
by given params in router method: \MvcCore\Router:Url($name, $params); .
Example: "products_list" | "Products:Gallery"
Returns
string|null
|
public
MvcCore\Route
|
#
SetName( string|null $name )
Set route name is your custom keyword/term or pascal case combination of
controller and action describing "Controller:Action" target to be
dispatched. Route name is not required route property.
Set route name is your custom keyword/term or pascal case combination of
controller and action describing "Controller:Action" target to be
dispatched. Route name is not required route property.
By this name there is selected proper route object to complete URL string
by given params in router method: \MvcCore\Router:Url($name, $params); .
Example: "products_list" | "Products:Gallery"
Parameters
Returns
|
public
string
|
#
GetController( )
Get controller name/path to dispatch, in pascal case. This property is not
required. If there is controller param inside route pattern or inside
route match pattern property, it's used to define this record to dispatch
specific requested controller.
Get controller name/path to dispatch, in pascal case. This property is not
required. If there is controller param inside route pattern or inside
route match pattern property, it's used to define this record to dispatch
specific requested controller.
It should contain controller class namespaces defined in standard PHP
notation. If there is backslash at the beginning - controller class will
be loaded directly from base standard controllers directory
/App/Controllers , not by any relative place defined by possible domain
route from extended router. If there are two standard slashes in the
beginning, controller class will be loaded without those two slashes
from base PHP place without any automatic MvcCore namespace prepending.
Example: "Products" - normally placed in /App/Controllers/Products.php(but it could be also in some sub-directory if there is used extended route with namespace) "\Front\Business\Products"- placed in /App/Controllers/Front/Business/Products.php "//Anywhere\Else\Controllers\Products" - placed in /Anywhere/Else/Controllers/Products.php
Returns
string
|
public
MvcCore\Route
|
#
SetController( string|null $controller )
Set controller name/path to dispatch, in pascal case. This property is not
required. If there is controller param inside route pattern or inside
route match pattern property, it's used to define this record to dispatch
specific requested controller.
Set controller name/path to dispatch, in pascal case. This property is not
required. If there is controller param inside route pattern or inside
route match pattern property, it's used to define this record to dispatch
specific requested controller.
It should contain controller class namespaces defined in standard PHP
notation. If there is backslash at the beginning - controller class will
be loaded directly from base standard controllers directory
/App/Controllers , not by any relative place defined by possible domain
route from extended router. If there are two standard slashes in the
beginning, controller class will be loaded without those two slashes
from base PHP place without any automatic MvcCore namespace prepending.
Example: "Products" - normally placed in /App/Controllers/Products.php(but it could be also in some sub-directory if there is used extended route with namespace) "\Front\Business\Products"- placed in /App/Controllers/Front/Business/Products.php "//Anywhere\Else\Controllers\Products" - placed in /Anywhere/Else/Controllers/Products.php
Parameters
Returns
|
public
string
|
#
GetAction( )
Get action name to call in dispatched controller, in pascal case. This
property is not required. If controller instance has default method
IndexAction() , its called. If there is no such method, no method is
called. If there is action param inside route pattern or inside route
match pattern property, it's used to overwrite this record to dispatch
specific requested action.
Get action name to call in dispatched controller, in pascal case. This
property is not required. If controller instance has default method
IndexAction() , its called. If there is no such method, no method is
called. If there is action param inside route pattern or inside route
match pattern property, it's used to overwrite this record to dispatch
specific requested action.
If this property has value "List" , then public method in target
controller has to be named as: public function ListAction () {...} .
Example: "List"
Returns
string
|
public
MvcCore\Route
|
#
SetAction( string|null $action )
Set action name to call in dispatched controller, in pascal case. This
property is not required. If controller instance has default method
IndexAction() , its called. If there is no such method, no method is
called. If there is action param inside route pattern or inside route
match pattern property, it's used to overwrite this record to dispatch
specific requested action.
Set action name to call in dispatched controller, in pascal case. This
property is not required. If controller instance has default method
IndexAction() , its called. If there is no such method, no method is
called. If there is action param inside route pattern or inside route
match pattern property, it's used to overwrite this record to dispatch
specific requested action.
If this property has value "List" , then public method in target
controller has to be named as: public function ListAction () {...} .
Example: "List"
Parameters
Returns
|
public
string
|
#
GetControllerAction( )
Get target controller name/path and controller action name together in
one getter, in pascal case, separated by colon. There are also contained
controller namespace. Read more about controller name/path definition
possibilities in \MvcCore\Route::GetController(); getter method.
Get target controller name/path and controller action name together in
one getter, in pascal case, separated by colon. There are also contained
controller namespace. Read more about controller name/path definition
possibilities in \MvcCore\Route::GetController(); getter method.
Example: "Products:List" | "\Front\Business\Products:Gallery"
Returns
string
|
public
MvcCore\Route
|
#
SetControllerAction( $controllerAction )
Set target controller name/path and controller action name together in
one setter, in pascal case, separated by colon. There are also contained
controller namespace. Read more about controller name/path definition
possibilities in \MvcCore\Route::SetController(); setter method.
Set target controller name/path and controller action name together in
one setter, in pascal case, separated by colon. There are also contained
controller namespace. Read more about controller name/path definition
possibilities in \MvcCore\Route::SetController(); setter method.
Example: "Products:List" | "\Front\Business\Products:Gallery"
Returns
|
public
array|array[]
&
|
#
GetDefaults( )
Get route rewrite params default values and also any other query string
params default values. It could be used for any application request
param from those application inputs - $_GET , $_POST or php://input .
Get route rewrite params default values and also any other query string
params default values. It could be used for any application request
param from those application inputs - $_GET , $_POST or php://input .
Example: ["name" => "default-name", "color" => "red",] .
Returns
array|array[]
|
public
MvcCore\Route
|
#
SetDefaults( array|array[] $defaults = [] )
Set route rewrite params default values and also any other query string
params default values. It could be used for any application request
param from those application inputs - $_GET , $_POST or php://input .
Set route rewrite params default values and also any other query string
params default values. It could be used for any application request
param from those application inputs - $_GET , $_POST or php://input .
Example: ["name" => "default-name", "color" => "red",] .
Parameters
Returns
|
public
array|array[]
|
#
GetConstraints( )
Get array with param names and their custom regular expression matching
rules. Not required, for all rewrite params there is used default
matching rules from route static properties defaultDomainConstraint or
defaultPathConstraint . It should be changed to any value. Default value
is "[^.]+" for domain part and "[^/]+" for path part.
Get array with param names and their custom regular expression matching
rules. Not required, for all rewrite params there is used default
matching rules from route static properties defaultDomainConstraint or
defaultPathConstraint . It should be changed to any value. Default value
is "[^.]+" for domain part and "[^/]+" for path part.
Example: ["name" => "[^/]+", "color" => "[a-z]+",]
Returns
array|array[]
|
public
MvcCore\Route
|
#
SetConstraints( array|array[] $constraints = [] )
Set array with param names and their custom regular expression matching
rules. Not required, for all rewrite params there is used default
matching rules from route static properties defaultDomainConstraint or
defaultPathConstraint . It should be changed to any value. Default value
is "[^.]+" for domain part and "[^/]+" for path part.
Set array with param names and their custom regular expression matching
rules. Not required, for all rewrite params there is used default
matching rules from route static properties defaultDomainConstraint or
defaultPathConstraint . It should be changed to any value. Default value
is "[^.]+" for domain part and "[^/]+" for path part.
Example: ["name" => "[^/]+", "color" => "[a-z]+",]
Parameters
Returns
|
public
array|callable[]
&
|
#
GetFilters( )
Get URL address params filters to filter URL params in and out. By route
filters you can change incoming request params into application and out
from application. For example to translate the values or anything else.
Get URL address params filters to filter URL params in and out. By route
filters you can change incoming request params into application and out
from application. For example to translate the values or anything else.
Filters are callable s and always in this array under keys "in" and
"out" accepting arguments:
- $params associative array with params from requested URL address for in filter and associative array with params to build URL address for out filter.
- $defaultParams associative array with default params to store any custom value necessary to filter effectively.
- $request current request instance implements \MvcCore\IRequest .
Callable filter must return associative array with filtered params.
There is possible to call any callable as closure function in variable
except forms like 'ClassName::methodName' and ['childClassName',
'parent::methodName'] and [$childInstance, 'parent::methodName'] .
Returns
array|callable[]
|
public
MvcCore\Route
|
#
SetFilters( array $filters = [] )
Set URL address params filters to filter URL params in and out. By route
filters you can change incoming request params into application and out
from application. For example to translate the values or anything else.
Set URL address params filters to filter URL params in and out. By route
filters you can change incoming request params into application and out
from application. For example to translate the values or anything else.
Filters are callable s and always in this array under keys "in" and
"out" accepting arguments:
- $params associative array with params from requested URL address for in filter and associative array with params to build URL address for out filter.
- $defaultParams associative array with default params to store any custom value necessary to filter effectively.
- $request current request instance implements \MvcCore\IRequest .
Callable filter must return associative array with filtered params.
There is possible to call any callable as closure function in variable
except forms like 'ClassName::methodName' and ['childClassName',
'parent::methodName'] and [$childInstance, 'parent::methodName'] .
Parameters
Returns
|
public
callable|null
|
#
GetFilter( $direction = \MvcCore\IRoute::CONFIG_FILTER_IN )
Get URL address params filter to filter URL params in and out. By route
filter you can change incoming request params into application and out
from application. For example to translate the values or anything else.
Get URL address params filter to filter URL params in and out. By route
filter you can change incoming request params into application and out
from application. For example to translate the values or anything else.
Filter is callable accepting arguments:
- $params associative array with params from requested URL address for in filter and associative array with params to build URL address for out filter.
- $defaultParams associative array with default params to store any custom value necessary to filter effectively.
- $request current request instance implements \MvcCore\IRequest .
Callable filter must return associative array with filtered params.
There is possible to call any callable as closure function in variable
except forms like 'ClassName::methodName' and ['childClassName',
'parent::methodName'] and [$childInstance, 'parent::methodName'] .
Returns
callable|null
|
public
MvcCore\Route
|
#
SetFilter( callable $handler, string $direction = \MvcCore\IRoute::CONFIG_FILTER_IN )
Set URL address params filter to filter URL params in and out. By route
filter you can change incoming request params into application and out
from application. For example to translate the values or anything else.
Set URL address params filter to filter URL params in and out. By route
filter you can change incoming request params into application and out
from application. For example to translate the values or anything else.
Filter is callable accepting arguments:
- $params associative array with params from requested URL address for in filter and associative array with params to build URL address for out filter.
- $defaultParams associative array with default params to store any custom value necessary to filter effectively.
- $request current request instance implements \MvcCore\IRequest .
Callable filter must return associative array with filtered params.
There is possible to call any callable as closure function in variable
except forms like 'ClassName::methodName' and ['childClassName',
'parent::methodName'] and [$childInstance, 'parent::methodName'] .
Parameters
Returns
|
public
string|null
|
#
GetMethod( )
Get http method to only match requests with this defined method. If NULL ,
request with any http method could be matched by this route. Value has to
be in upper case.
Example: "POST" | \MvcCore\IRequest::METHOD_POST
Get http method to only match requests with this defined method. If NULL ,
request with any http method could be matched by this route. Value has to
be in upper case.
Example: "POST" | \MvcCore\IRequest::METHOD_POST
Returns
string|null
|
public
MvcCore\Route
|
#
SetMethod( string|null $method = NULL )
Set http method to only match requests with this defined method. If NULL ,
request with any http method could be matched by this route. Value has to
be in upper case.
Example: "POST" | \MvcCore\IRequest::METHOD_POST
Set http method to only match requests with this defined method. If NULL ,
request with any http method could be matched by this route. Value has to
be in upper case.
Example: "POST" | \MvcCore\IRequest::METHOD_POST
Parameters
Returns
|
public
string|null
|
#
GetRedirect( )
Get other route unique name to redirect request to. To this target route are
passed params parsed from this matched route. This property is used for
routes handling old pages or old request forms, redirecting those request
to new form.
Example: "new_route_name"
Get other route unique name to redirect request to. To this target route are
passed params parsed from this matched route. This property is used for
routes handling old pages or old request forms, redirecting those request
to new form.
Example: "new_route_name"
Returns
string|null
|
public
MvcCore\Route
|
#
SetRedirect( string|null $redirectRouteName = NULL )
Set other route unique name to redirect request to. To this target route are
passed params parsed from this matched route. This property is used for
routes handling old pages or old request forms, redirecting those request
to new form.
Example: "new_route_name"
Set other route unique name to redirect request to. To this target route are
passed params parsed from this matched route. This property is used for
routes handling old pages or old request forms, redirecting those request
to new form.
Example: "new_route_name"
Parameters
Returns
|
public
boolean
|
#
GetAbsolute( )
Return TRUE if route pattern (or reverse ) contains domain part with
two slashes at the beginning or if route is defined with absolute
boolean flag by advanced configuration in constructor or by setter.
Return TRUE if route pattern (or reverse ) contains domain part with
two slashes at the beginning or if route is defined with absolute
boolean flag by advanced configuration in constructor or by setter.
Returns
boolean
|
public
MvcCore\Route
|
#
SetAbsolute( boolean $absolute = TRUE )
Set boolean about to generate absolute URL addresses. If TRUE , there is
always generated absolute URL form. If FALSE , absolute URL address is
generated only if pattern (or reverse ) property contains absolute
matching form.
Set boolean about to generate absolute URL addresses. If TRUE , there is
always generated absolute URL form. If FALSE , absolute URL address is
generated only if pattern (or reverse ) property contains absolute
matching form.
Parameters
Returns
|
public
string|null
|
#
GetGroupName( )
Get route group name to belongs to. Group name is always first word parsed
from request path. First word is content between two first slashes in
request path. If group name is NULL , route belongs to default group
and that group is used when no other group matching the request path.
Get route group name to belongs to. Group name is always first word parsed
from request path. First word is content between two first slashes in
request path. If group name is NULL , route belongs to default group
and that group is used when no other group matching the request path.
Returns
string|null
|
public
MvcCore\Route
|
#
SetGroupName( string|null $groupName )
Set route group name to belongs to. Group name is always first word parsed
from request path. First word is content between two first slashes in
request path. If group name is NULL , route belongs to default group
and that group is used when no other group matching the request path.
Set route group name to belongs to. Group name is always first word parsed
from request path. First word is content between two first slashes in
request path. If group name is NULL , route belongs to default group
and that group is used when no other group matching the request path.
Parameters
Returns
|
public
string[]|null
|
#
GetReverseParams( )
Return only reverse params names as string s array. Reverse params array
is array with all rewrite params founded in patter (or reverse ) string.
Example: ["name", "color"];
Return only reverse params names as string s array. Reverse params array
is array with all rewrite params founded in patter (or reverse ) string.
Example: ["name", "color"];
Returns
string[]|null
|
public
MvcCore\Route
|
#
SetMatchedParams( array $matchedParams = [] )
Set manually matched params from rewrite route matching process into
current route object. Use this method only on currently matched route!
Passed array must have keys as param names and values as matched values
and it must contain all only matched rewrite params and route controller
and route action if any.
Set manually matched params from rewrite route matching process into
current route object. Use this method only on currently matched route!
Passed array must have keys as param names and values as matched values
and it must contain all only matched rewrite params and route controller
and route action if any.
Parameters
Returns
|
public
array|null
&
|
#
GetMatchedParams( )
Get matched params from rewrite route matching process into current route
object. Use this method only on currently matched route! Passed array
must have keys as param names and values as matched values and it must
contain all only matched rewrite params and route controller and route
action if any.
Get matched params from rewrite route matching process into current route
object. Use this method only on currently matched route! Passed array
must have keys as param names and values as matched values and it must
contain all only matched rewrite params and route controller and route
action if any.
Returns
array|null
|
public
MvcCore\Router
|
#
GetRouter( )
Get router instance reference, used mostly in route URL building process.
Get router instance reference, used mostly in route URL building process.
Returns
|
public
MvcCore\Route
|
#
SetRouter( MvcCore\IRouter $router )
Set router instance reference, used mostly in route URL building process.
Set router instance reference, used mostly in route URL building process.
Parameters
Returns
|
public
mixed
|
#
GetAdvancedConfigProperty( string $propertyName )
Get any special advanced configuration property from route constructor.
configuration array contains data from route constructor. If route is
initialized with all params (not only by single array), the configuration
array used in this method contains the fourth param with advanced route
configuration. If route is initialized only with one single array
argument, the configuration array used in this method contains that whole
configuration single array argument. Data in described are without no
change against initialization moment. You can specify key to the array to
get any initialization value.
Get any special advanced configuration property from route constructor.
configuration array contains data from route constructor. If route is
initialized with all params (not only by single array), the configuration
array used in this method contains the fourth param with advanced route
configuration. If route is initialized only with one single array
argument, the configuration array used in this method contains that whole
configuration single array argument. Data in described are without no
change against initialization moment. You can specify key to the array to
get any initialization value.
Parameters
Returns
mixed
|
public
array
&
|
#
Matches( MvcCore\IRequest $request )
Return array of matched params if incoming request match this route
or NULL if doesn't. Returned array must contain all matched reverse
params with matched controller and action names by route and by matched
params. Route is matched usually if request property path matches by
PHP preg_match_all() route match pattern. Sometimes, matching subject
could be different if route specifies it - if route pattern (or match )
property contains domain (or base path part) - it means if it is absolute
or if pattern (or match ) property contains a query string part.
This method is usually called in core request routing process
from \MvcCore\Router::Route(); method and it's sub-methods.
Return array of matched params if incoming request match this route
or NULL if doesn't. Returned array must contain all matched reverse
params with matched controller and action names by route and by matched
params. Route is matched usually if request property path matches by
PHP preg_match_all() route match pattern. Sometimes, matching subject
could be different if route specifies it - if route pattern (or match )
property contains domain (or base path part) - it means if it is absolute
or if pattern (or match ) property contains a query string part.
This method is usually called in core request routing process
from \MvcCore\Router::Route(); method and it's sub-methods.
Parameters
- $request
- The request object instance.
Returns
array Matched and params array, keys are matched
params or controller and action params.
Throws
LogicException Route configuration property is missing.
InvalidArgumentException Wrong route pattern format.
|
public
array
|
#
Filter( array & $params = [], array & $defaultParams = [], string $direction = \MvcCore\IRoute::CONFIG_FILTER_IN )
Filter given array $params by configured "in" | "out" filter callable .
This function return array with first item as bool about successful
filter processing in try/catch and second item as filtered params array .
Filter given array $params by configured "in" | "out" filter callable .
This function return array with first item as bool about successful
filter processing in try/catch and second item as filtered params array .
Parameters
- $params
- $defaultParams
- $direction
Returns
array Filtered params array.
|
public
string[]
|
#
Url( MvcCore\IRequest $request, array & $params = [], array & $defaultUrlParams = [], string $queryStringParamsSepatator = '&', boolean $splitUrl = FALSE )
Complete route URL by given params array and route internal reverse
replacements pattern string. If there are more given params in first
argument than total count of replacement places in reverse pattern,
then create URL with query string params after reverse pattern,
containing that extra record(s) value(s). Returned is an array with only
one string as result URL or it could be returned for extended classes
an array with two strings - result URL in two parts - first part as scheme,
domain and base path and second as path and query string.
Example:
Input ($params ):
[
"name" => "cool-product-name",
"color" => "blue",
"variants" => ["L", "XL"],
];
Input (\MvcCore\Route::$reverse ):
"/products-list/<name>/<color*>"
Output:
["/any/app/base/path/products-list/cool-product-name/blue?variant[]=L&variant[]=XL"]
or:
[
"/any/app/base/path",
"/products-list/cool-product-name/blue?variant[]=L&variant[]=XL"
]
Complete route URL by given params array and route internal reverse
replacements pattern string. If there are more given params in first
argument than total count of replacement places in reverse pattern,
then create URL with query string params after reverse pattern,
containing that extra record(s) value(s). Returned is an array with only
one string as result URL or it could be returned for extended classes
an array with two strings - result URL in two parts - first part as scheme,
domain and base path and second as path and query string.
Example:
Input ($params ): [ "name" => "cool-product-name", "color" => "blue", "variants" => ["L", "XL"], ];
Input (\MvcCore\Route::$reverse ): "/products-list/<name>/<color*>"
Output: ["/any/app/base/path/products-list/cool-product-name/blue?variant[]=L&variant[]=XL"] or: [ "/any/app/base/path", "/products-list/cool-product-name/blue?variant[]=L&variant[]=XL" ]
Parameters
- $request
- Currently requested request object.
- $params
URL params from application point completed
by developer.
- $defaultUrlParams
Requested URL route params and query string
params without escaped HTML special chars:
< > & " ' & .
- $queryStringParamsSepatator
Query params separator, & by default. Always
automatically completed by router instance.
- $splitUrl
Boolean value about to split completed result URL
into two parts or not. Default is FALSE to return
a string array with only one record - the result
URL. If TRUE , result url is split into two
parts and function return array with two items.
Returns
string[] Result URL address in array. If last argument is
FALSE by default, this function returns only
single item array with result URL. If last
argument is TRUE , function returns result URL
in two parts - domain part with base path and
path part with query string.
|
public
MvcCore\Route
|
#
InitAll( )
Initialize all possible protected values (match , reverse etc...). This
method is not recommended to use in production mode, it's designed mostly
for development purposes, to see what could be inside route object.
Initialize all possible protected values (match , reverse etc...). This
method is not recommended to use in production mode, it's designed mostly
for development purposes, to see what could be inside route object.
Returns
|
public
string[]
|
#
__sleep( )
Collect all properties names to serialize them by serialize() method.
Collect all instance properties declared as private, protected and public
and if there is not configured in static::$protectedProperties anything
under property name, return those properties in result array.
Collect all properties names to serialize them by serialize() method.
Collect all instance properties declared as private, protected and public
and if there is not configured in static::$protectedProperties anything
under property name, return those properties in result array.
Returns
string[]
|
public
|
#
__wakeup( )
Assign router instance to local property $this->router; .
Assign router instance to local property $this->router; .
|


Buy Two, Save 30%
Purchase any product and save 30% at checkout. Choose from several unique tea collections.
SHOP THIS OFFERAll the Featured Delivery Bundles
Starter
$5 / mo
- 5 Tea Bags included:
- Chamomile,
- Orange Pekoe,
- Earl Grey,
- Matcha,
- Ginger
- Default Samples
- Loose Leaf Only
Pro
$15 / mo
- 20 Tea products of choice
- Each product can be switched out
- Credited on Out of Stock
- Priority email support
- Can change every time
- At no additional cost
- Loose Leaf or Bag
Enthusiast
$29 / mo
- 50 tea products of your choosing
- All benefits of Pro
- Extends to 3rd Party Teas
- Phone and email support
- Best Bulk Value
- Supply Your Needs
- Loose Leaf or Bag
Teas Available for Purchase See for yourself.
Organic Ceremonial Matcha
Suitable for serving in Japanese tea ceremony, welcoming esteemed guests, or indulging in the finest of green teas during times of relaxation.
$80
Add To Cart ViewIt Pays To Buy Good Tea
Comes with an assortment of tea bags from Rooibos, Orange Pekoe, Earl Grey, and Chamomile. This is a longer card with supporting text below. There is even more support text below the previous line.
$50
Add To Cart ViewGolden Tea Kettle
Gold dipped Teak Kettle for a luxurious pouring of tea. This is a longer card with supporting text below. There is even more support text below the previous line. With an additional line to boot. And another one beyond that one too to take some space.
$120
Add To Cart ViewLemon Tea Set
This is a Lemon-themed tea set provided with lemon tea. This is supporting text below.
$45
Add To Cart ViewPekoe Delight
A flavor with the right amount of tang and not too bitter taste for our fanciful consumers.
$20
Add To Cart ViewTurkish Style
This crimson-colored tea is known for being strong and quite robust for the caffeinne.
$80
Add To Cart ViewBerry Basket
This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.
$15
Add To Cart ViewRooibos Raja Chai
This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.
$15
Add To Cart ViewPoom Double-Walled Teacup
Nilgiri nokcha energy matcha white loose leaf caffeine oolong focus nokcha yerba maté tea garden. This is a longer text that will take up more space.


About Hi, I’m Zeeshan. How are you? Email<EMAIL_ADDRESS>Github: https://github.com/zfaizal LinkedIn: https://linkedin.com/in/zeeshanfaizal


|
Vixen Core
|
#include <vix_file_interface.h>
Public Member Functions | |
| virtual | ~IFile () |
| virtual FileError | Error ()=0 |
| virtual UString | FileName ()=0 |
| virtual UString | FilePath ()=0 |
| virtual UString | BaseName ()=0 |
| virtual bool | Open (UString path)=0 |
| virtual bool | Flush ()=0 |
| virtual bool | Seek (size_t offset, FileSeek mode)=0 |
| virtual bool | Close ()=0 |
| virtual void | Read (BYTE *out, size_t len)=0 |
| virtual size_t | Tell ()=0 |
| virtual size_t | SizeBytes ()=0 |
| virtual size_t | SizeKBytes ()=0 |
| virtual size_t | Position ()=0 |
| virtual FILE * | Handle ()=0 |
| virtual bool | PError (int err=0)=0 |
Additional Inherited Members | |
| Protected Member Functions inherited from Vixen::INonCopy | |
| INonCopy () | |
| ~INonCopy () | |
IFIle interface
Describes base class of all File I/O classes
|
inlinevirtual |
|
pure virtual |
Implemented in Vixen::File.
|
pure virtual |
Implemented in Vixen::File.
|
pure virtual |
Implemented in Vixen::File.
|
pure virtual |
Implemented in Vixen::File.
|
pure virtual |
Implemented in Vixen::File.
|
pure virtual |
Implemented in Vixen::File.
|
pure virtual |
Implemented in Vixen::File.
|
pure virtual |
Implemented in Vixen::File.
|
pure virtual |
Implemented in Vixen::File.
|
pure virtual |
Implemented in Vixen::File.
|
pure virtual |
Implemented in Vixen::File.
|
pure virtual |
Implemented in Vixen::File.
|
pure virtual |
Implemented in Vixen::File.
|
pure virtual |
Implemented in Vixen::File.
|
pure virtual |
Implemented in Vixen::File.


WebRTC ws-signaling 2019
Start Video
Stop Video
Connect
Hang Up
SDP to send:
SDP to send
SDP to receive:
Receive remote SDP


{% extends "wagtailusers/users/edit.html" %}
{% block extra_fields %}
{% include "wagtailadmin/shared/field_as_li.html" with field=form.img %}
{% include "wagtailadmin/shared/field_as_li.html" with field=form.nickname %}
{% include "wagtailadmin/shared/field_as_li.html" with field=form.graduation_year %}
{% include "wagtailadmin/shared/field_as_li.html" with field=form.major %}
{% include "wagtailadmin/shared/field_as_li.html" with field=form.voice_part %}
{% include "wagtailadmin/shared/field_as_li.html" with field=form.home_town %}
{% include "wagtailadmin/shared/field_as_li.html" with field=form.bio %}
{% include "wagtailadmin/shared/field_as_li.html" with field=form.phone %}
{% include "wagtailadmin/shared/field_as_li.html" with field=form.location %}
{% include "wagtailadmin/shared/field_as_li.html" with field=form.website %}
{% include "wagtailadmin/shared/field_as_li.html" with field=form.linkedin %}
{% include "wagtailadmin/shared/field_as_li.html" with field=form.facebook %}
{% include "wagtailadmin/shared/field_as_li.html" with field=form.instagram %}
{% include "wagtailadmin/shared/field_as_li.html" with field=form.current %}
{% endblock extra_fields %}


| DOSE: |
7.0 g |
oral |
Nutmeg |
(ground / crushed) |
It all started on a Friday when I was home from school on a day off. I was fresh out of my usual substance for getting intoxified, marijuana. I was bored out of my mind. There was nothing to do, nowhere to go. It was time to experiment. I had read that nutmeg would get you messed up, but I had no idea.
I found an 1 oz jar of this that was 1/4 full. I consumed the whole thing, hating each grainly gulp of it. I knew it was going to be a while before it kicked in so I watched tv for about 45 mins. After that I decided to work on a paper I had to write. After staring at the computer and back at a book for about 30 mins, I realized that I could not think of one thing 2 write. I usually could go on about nothing for hours but this was different. It was like there was a lock on my brain and I couldn't think.
I left the computer because I was starting 2 get a headache so I took 2 advils and went to my room.  I WANTED to draw. I WANTED to write but nothing would come out. It was extremely aggravating.
The nutmeg was starting to really kick in. I laid down in my bed with the ceiling fan lights on. I remember staring at them and noticing that they kept getting briter and briter, until they were so bright they hurt my eyes. I turned the light off and returned to the bed. As I was sitting in the dark room I started to get some closed eye visuals which I would describe as electric. As time progressed I could identify shapes and then objects as they floated through my head. I was really enjoying them and time kept flying by. Six hours I was laying in my bed before my mom woke me up to eat dinner.
As soon as I got up I got the biggest head rush. Everything started spinning and my stomach felt like it was turning inside out. As soon as I layed back down, I was fine. I tried to make it upstairs to the kitchen but wound up on the bathroom floor. The rest of the night is really a blur, but I remained sick for Saturday and Sunday with a fever. I don't know if I got sick and that caused the feelings, or if it was induced by the nutmeg, but I was perfectly fine by Tuesday. Overall it was a bad experience and definatly not worth it for the visuals.
Experience Reports are the writings and opinions of the individual authors who submit them.
Some of the activities described are dangerous and/or illegal and none are recommended by Erowid.


| Targets: | time 0.2.22 (lib) |
| Profile: | dev |
| Fresh units: | 0 |
| Dirty units: | 26 |
| Total units: | 26 |
| Max concurrency: | 7 (jobs=8 ncpu=8) |
| Build start: | 2020-11-09T23:27:41Z |
| Total time: | 7.9s |
| rustc: | rustc 1.49.0-nightly (9d78d1d02 2020-11-05) Host: x86_64-unknown-linux-gnu Target: x86_64-unknown-linux-gnu |
| Max (global) rustc threads concurrency: | 0 |
| Unit | Total | Codegen | Features | |
|---|---|---|---|---|
| 1. | syn v1.0.48 | 4.1s | 1.5s (37%) | clone-impls, default, derive, full, parsing, printing, proc-macro, quote, visit |
| 2. | time v0.2.22 | 1.2s | 0.3s (27%) | default, deprecated, libc, std, stdweb, winapi |
| 3. | proc-macro-hack v0.5.19 | 1.0s | 0.0s (0%) | |
| 4. | proc-macro2 v1.0.24 | 0.9s | 0.3s (39%) | default, proc-macro |
| 5. | libc v0.2.80 | 0.9s | 0.0s (5%) | default, std |
| 6. | time-macros-impl v0.1.1 | 0.5s | 0.0s (0%) | |
| 7. | version_check v0.9.2 | 0.5s | 0.2s (52%) | |
| 8. | const_fn v0.4.3 | 0.4s | 0.0s (0%) | |
| 9. | libc v0.2.80 custom-build | 0.4s | 0.0s (0%) | default, std |
| 10. | quote v1.0.7 | 0.4s | 0.1s (22%) | default, proc-macro |
| 11. | const_fn v0.4.3 custom-build | 0.4s | 0.0s (0%) | |
| 12. | proc-macro2 v1.0.24 custom-build | 0.4s | 0.0s (0%) | default, proc-macro |
| 13. | proc-macro-hack v0.5.19 custom-build | 0.3s | 0.0s (0%) | |
| 14. | syn v1.0.48 custom-build | 0.3s | 0.0s (0%) | clone-impls, default, derive, full, parsing, printing, proc-macro, quote, visit |
| 15. | time v0.2.22 custom-build | 0.2s | 0.0s (0%) | default, deprecated, libc, std, stdweb, winapi |
| 16. | standback v0.2.11 custom-build | 0.2s | 0.0s (0%) | default, std |
| 17. | unicode-xid v0.2.1 | 0.1s | 0.0s (32%) | default |
| 18. | standback v0.2.11 | 0.0s | 0.0s (28%) | default, std |
| 19. | standback v0.2.11 custom-build (run) | 0.0s | 0.0s (0%) | default, std |
| 20. | syn v1.0.48 custom-build (run) | 0.0s | 0.0s (0%) | clone-impls, default, derive, full, parsing, printing, proc-macro, quote, visit |
| 21. | const_fn v0.4.3 custom-build (run) | 0.0s | 0.0s (0%) | |
| 22. | time-macros v0.1.1 | 0.0s | 0.0s (16%) | |
| 23. | proc-macro2 v1.0.24 custom-build (run) | 0.0s | 0.0s (0%) | default, proc-macro |
| 24. | proc-macro-hack v0.5.19 custom-build (run) | 0.0s | 0.0s (0%) | |
| 25. | time v0.2.22 custom-build (run) | 0.0s | 0.0s (0%) | default, deprecated, libc, std, stdweb, winapi |
| 26. | libc v0.2.80 custom-build (run) | 0.0s | 0.0s (0%) | default, std |


Home
Contact
Contact
Company name. INC
550 Avenue Street, New york
+1 590 912 831
contact@companyname.com


Software developer, Engineer, Open Source & GNU/Linux lover, sys admin, geek and illustrator.
"Science can amuse and fascinate us all, but it is engineering that changes the world."
Isaac Asimov
"Any program is only as good as it is useful."
Linus Torvalds
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity."
Dennis Ritchie
"Art is accusation, expression, passion.
Günter Grass


--- layout: thanks title: archived logs permalink: /archived-logs/ paginate: limit: false per_page: 10 collection: 'archived-logs' ---


APIs
Infuse your apps, websites and bots with intelligent algorithms to see, hear, speak, understand and interpret your user needs through natural methods of communication.
Nessie is Capital One’s Hackathon API that gives you access to a multitude of real public-facing data - such as ATM and bank branch locations - along with mock customer account data. Use HTTP requests to set up peer-to-peer transactions, simulate a weekly paycheck, or even schedule bills for customers! This is all structured in a way that resembles how we actually run things here at Capital One.
Company Challenges
We challenge you to help people get a better understanding of their financial lives through any interface you choose - you can create insights by mixing APIs, provide recommendations of better budgeting, or anything else related to personal finance. You can qualify for our prize in two ways
1. Use Citi's APIs in any project (at developer.citi.com)
OR
2. Build any project that helps people with their personal finance.
If your project fits either criteria you are eligible to win a Raspberry Pi kit! Each member of the top two teams will receive this prize!
Ask us questions on the #Citi channel or through any of our mentors. If you want to use our API platform, message us on Slack, chat with our mentors, or come to our booth to get login credentials as we are in closed beta.
Each Member of Top 2 Teams: Raspberry Pi Kit


Spotify can now create the perfect playlist for your road trip
by David NieldSpotify can now create the perfect playlist for your road trip
Hit the road
(Image credit: Spotify)
No road trip is complete without a perfectly picked medley of tunes to accompany your driving, and Spotify is now rolling out a feature that will generate a road trip playlist automatically for you.
It's called Soundtrack your Ride, and you need to head to a web browser to get the playlist generated to begin with – you can get at it here.
Once you've logged in with your Spotify account, you can specify the start and end points of your journey, or set the length of the trip manually, so Spotify knows how many tracks it has to pick.
- Pick the best streaming music service
- Apple Watch 6 news and rumors
- New features coming to Google Chrome
You then have to answer several questions about the road trip: who you're traveling with, what kind of music you want to hear, the sort of tempo you're looking for, and so on. At the end, your playlist is generated.
Press play
With a click you can listen to the playlist in the Spotify desktop client, and of course open it up on your phone as well. If you're a premium subscriber you might want to save it for offline playback ready for the long journey ahead.
The new playlist generator might not revolutionize your life but it's another convenient feature to make use of, and a way of leveraging all that listening history that Spotify has access to in your account.
Playlists have always been a focus for Spotify: you can get playlists based on your ancestry, for example, as well as playlists that refresh each day (complete with news and podcasts) ready for your morning drive to work.
It's one way of getting users to pick Spotify over Apple Music and the other streaming services out there – though of course you're still free to curate your own road trip playlist in the traditional way.
Via Engadget


DESIGN SHAMANISM OR HOW TO EMBRACE IRRATIONALITY AND DESIGN FOR SYSTEMIC CHANGE
Authors
Søren Rosenbak
Year
Notes
Describes how the 'irrational' shaman can act as a gateway for design processes.
Tags
Relevance
Quotations
Boundary Objects
Concepts
Field of Study
Methodology
References


Blacksmith Pinter:
Yes, this is it! Thank you so much. Let me look it over once more, then I hope you will take it to
Kluto
.
Look here, shouldn't my efforts receive some kind of compensation?