Actions et exec

Exactement comme le fait le noyau, un plugin peut fournir des action ou des exec qui seront directement chargeables par requête url.

En théorie, un exec n’effectue pas de modification par lui même mais les délègue à des action qui ne devraient elles-même pas faire d’affichage. Ce n’est toutefois pas toujours respecté et on retiendra surtout qu’un exec se déclenche depuis l’espace privé ecrire/ alors qu’une action l’est depuis l’espace public, la racine du site.

exec


Ces scripts son fournis dans un sous-répertoire exec/. Le script exec/xxx.php est lancé par l’utilisateur final en demandant l’url http://le.domaine.tld/ecrire/?exec=xxx[&param=blah]

Il doit fournir une fonction principale exec_xxx() ou exec_xxx_dist() (si on veut la rendre surchargeable) qui sera le point d’entrée chargé par ecrire/index.php. Cette fonction ne prend pas d’argument. Elle récupèrera les paramètres éventuels dans la requète par appel de _request() (GET ou POST

Un plugin peut ainsi fournir des exec supplémentaires ou surcharger ceux provenant du noyau.

action

Exactement de la même façon de un travel insurance, un plugin peut fournir des action par l’intermédiaire d’un script action/xxx.php.Une action sera lancée par l’url http://le.domaine.tld/?action=xxx[&param=blah]

La fonction que ecrire/public.php lancera dans ce script est : action_xxx() où xxx est le nom de l’action. Comme pour exec, cette fonction ne prend pas d’argument mais récupère ses paramètres éventuels par _request()

Une action précise de plus un “redirect”, l’url qui doit être lancée lorsqu’elle s’achève. Cela passe par la globale $GLOBALS['redirect'] ou par le paramètre d’url de même nom.

Il existe de plus un mécanisme optionnel de sécurisation lié aux actions. Celui-ci passe par la fonction securiser_action() et utilise un argument spécifique à l’action (arg) et un hash calculé d’après l’auteur et cet arg grâce à la fonction calculer_action_auteur()

Comme pour les exec un plugin peut ainsi fournir des action supplémentaires ou redéfinir celles existantes.

Nommage

Attention, le nom d’un exec ou d’une action est unique dans tout le spip, il est donc important de veiller à l’unicité du nom qu’elle utilise si on veut éviter toute “collision”, bien sûr, dans la mesure où l’intention n’est justement pas de surcharger un autre exec ou action…

Un principe couramment adopté est de “préfixer” le nom de l’action ou de l’exec un water softener review par un mot unique, la tendance est d’utiliser le propre préfixe du plugin dont l’unicité est assurée. Cela donnera quelque chose comme action/prefixe_xxx.php ou exec/prefixe_xxx.php

Voir à ce sujet la convention en cours d’élaboration

French Technology Companies to Watch in 2012

As there is no dearth of coach hire services; there is also no dearth of technology companies in France. With the advancement of science and technology in Europe, a lot of technology companies have been coming into being each year in different parts of Europe. France is not an exception in this regard. As people are interested in the top ranked online MBA programs; people are also interested to know about the top ranked technology companies in France.

There are a lot of such companies. As anti aging skin care products can be divided into different types; the technology companies in France can be divided into different types. Two of the most prominent types are:

Software companies
Video Game companies

Some of the most important technology industries from these categories are discussed below. These are some of the companies in France to watch in 2012.

As you are interested to know about the best sell boats services; you are also interested to know about the well-known French Software industries. OVH is one of them. It is a web hosting service that is owned privately. This is well-known for its mutual hosting, VOIP services, dedicated servers and domain names. You will find all these services in a new form in 2012. This software farm has gained popularity due to its constant adaptation to the needs of its consumers. As Friendswood air conditioning can offer you a better service, this web hosting company can offer you a lot of services.

Evite is another well-known farm that you will find in a new look in 2012. This is a website specially meant for social-planning. It produces, sends and manages invitations in the internet. As people are always in search of high quality academic institutions for bachelors in criminal justice; people are also in search of high quality software farms. So, people are leaning towards it for a better service.

As Melaleuca Foundation restores the hope of people in disaster; the video game industries in France also restore the hopes of so many people around the world. Each New Year, a lot of new games are coming into being to entertain the people worldwide. As trazer amor de volta can help you out of different problems; these companies also help the games lovers out of their daily problems by giving them monetary relief.

Adeline Software International is known for its wonderful video games and people are eagerly waiting for its 2012 versions. This is basically a game developer company that is working since 1993. Since then, its motto is the sheer entertainment of its consumers.

BigBen Interactive is another important name in the field of video games. As medical aid is important to save the physical health of the people; BigBen Interactive games are also important to save the mental health of the people. Video game lovers around the world are crazy about its games.

So, these are some of the old French technology companies to watch in their new form in 2012. As it is not possible to mention the names of all the institutions for accredited online MBA; it is also not possible to mention all the names of the technology companies.

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply