PHP Registry Class

This class implements one pattern of the object-oriented programming. It’s called Singleton-pattern. You can use it as a global container for your application. It acts like a global array, that stores variables, objects and arrays for you – and it is avaible everywhere in your application. This pattern is as simple as it is powerful.

download: latest version (1.0.0)



This function initialize the Registry for use. You can also call it, if you want to reset the Registry (remove all objects).


  • No params



set($key, $value)


adds or updates the $value with the $key


  • $key – the key in the array
  • $value – value of $key in the array


boolean – true on success, false on failure



returns the value of $key from the array


  • $key – element to return


the element (by reference) on success, false on failure



it tests, whether the key exists or not


  • $key – key of the required element


boolean – true on success, false on failure



removes an element from the array


  • $key – key to remove





returns the number of elements in the array


  • no params


integer – number of elements


/* init e.g. a database connection -> $conn */
/* do something other operations or jump */
/*into another function */
/* or */
$conn = Registry::get('db');
/* continue working */

20 thoughts on “PHP Registry Class

  1. After decades of dieting, that has deeper implications than you can ever imagine (unless of course you’ve been on the yo-yo too).

    The Obesity Epidemic is getting worse each year and needs
    to be addressed city by city, county by county, region by
    region, and country by country. 300g sugar in cups

  2. beautiful nail paint designs nail pens

  3. Low radiation to secure your wellbeing, it’s convenient being taken anywhere along with you.
    Now Battery – Plus is required as “A Must-have Application if You Value Your Battery'” by Black – Berry Users on Black –
    Berry App World.

    Utilizing fraxel treatments customer can make cross
    country calls at dramatically reduced rates. After installing Heatmapper,
    this program will ask if you might have a map of
    one’s floor plan’don’t get worried; when you don’t have one, you are able
    to create a grid-based heatmap. Wifi range extenders review Now using these basics out on the way, let’s use a look for the 5 booster antennas we recommend.

  4. Recording is not hard; all you must do is hook it nearly your
    TV or DVR. You can get a fixed camera or possibly a PTZ (Pan-Tilt-Zoom) camera that allows you to remotely point the cam in different
    direction. We paid Apple’s special supported technology to make use
    of a USB cable to share with you the router’s name, password just
    by one click.

    This article focuses within the advantages and disadvantages utilizing outdoor hidden video cameras.
    It even has automatic landscape mode as a result of its accelerometer sensor.

  5. There are probably plenty of people who believe this belongs inside Major Mistakes category, plus they might be right.
    Coaches and parents will notice the good differential in ability
    as of this young age and could possibly have to separated into groups by
    ability. Fotos da nerf In general, the guns on the SMG
    group are fairly diverse, however in ways that will make them hard to effectively apply in-game.

    the London Low Emissions Zone pertains to all vehicles inside the size
    bracket, in spite of whether they can be for public or private usage.
    Carrying cases, chargers and also other accessories can shield your Nintendo DS and increase its

  6. The invention of HDMI connection has had about
    yet another value on the enjoyment of consumer electronic enthusiasts.
    Most LCDs and plasma televisions, all computer video cards and a lot of DVD players are also that will
    work with the DVI D Dual Link Cable. Hdmi female to female walmart In this review we provide you with the strong
    and weak points in the tablet made because of the Taiwanese OEM.

    improved camera capability (including a better camera flash).

    Use a knife to drag out the air-conditioning window card
    slot, sse a knife to get out the air-conditioning window card slot.

  7. A different disappointment for that Samsung F490 Analysis – Samsung F490
    Consumer Review. either by providing flyers, or placing lawn signs everywhere.
    You may transfer footage with a compact flash storage device.

    The success of your blog or website is measured from the terms of variety of visitors for it.
    This attribute with the Samsung F490 can be something I really enjoy.

  8. There are a great deal of CCTV Lens Calculators for the internet to help you
    to. CCTV”>wireless CCTVtypically works with a wireless camera to capture video clip. Zmodo surveillance system reviews All the cameras they offer on their website are already tested to be sure that they produce the high quality results that CCTV42 aim for.

    I ended up doing my homework and buying some cameras along with a DVR recorder off a national company which we fitted ourselves. Various technologies are the GPS tracker, CCTV camera, vehicle tracker, home security system, and system monitoring.

  9. The action, romance and mystery games are most widely used at present times these
    latest games might be played only inside modern and latest gaming
    kinds of computers. Programmable gaming secrets to automate
    beatdowns – A keyboard that can’t record macros can scarcely
    call itself a gaming keyboard. Game computer 2015 s vital, from all gaming computer tasks, this is just
    not the one anyone really wants to skip over.

    Now imagine if it got a fresh game scratched after only a few tries.
    Doing offers on computer became one from your favourite activities
    among people all over the world nowadays.

  10. The newest style Braun series 7 shavers happen to be getting a
    good deal of good opinions from guys throughout the world.
    Last year myself and my wife Audrey bought the razor rip rider for
    the two small boys and they also love it. Electric razor user reviews Now use a razor and trim the damaged area down on the backing.

    Therefore, inspect the razor blade carefully before you shave to make sure you’ll find no nicks.
    You see, some in the shavers are geared toward people who have very rough facial hair who
    need to shave each and every day.

  11. The USB DVR allows you to watch your premises in real time on the
    Internet from anywhere within the world. Be it in order to avoid theft and robbery fitness center
    business, or to monitor the behavior of employees and students, CCTV could provide a total guarantee for security level.
    Zmodo reviews If that’s possible then purchase multi-room DVR from your operator for cash.

    In the most up-to-date 2011 edition from the Swann catalog there are 4 diverse
    models with the Swan DVR, with each model supporting an alternative volume of
    cameras and features. Top notch features for example Progressive Scan CMOS can also be found in good quality cameras with DVR

  12. She smiled and visited unstrap him through the seat then sat with him around
    the sofa. Low good quality sofa beds are made of low-cost materials that will sag and wear easily.
    The sofa seat and back flip over, creating the bed and also
    the bed support.

    The sleeper sofa is excellent option as a little space guest bed,
    because you are able to fold it away when it can be not in use and you’ll still have a regular sofa to
    utilize for sitting. Leather looks elegant which is durable which makes it
    better than all the opposite sofas available out there.

  13. Interest as part of your function Wireless solutions will definitely rise and fall therefore technical workers should deal using this specific.
    This complete bundle offer is offered at The souq
    only for AED 4,999.

    Tri-band and quad band models will also be available but tend to be more expensive and used more for international travel.
    We produce every product by adopting the professional skills.
    The best wireless booster I’ve noticed how sturdy these cases are
    after having a first hand look on the constant abuse my
    little sister subjected the truth to.

  14. If you use a premises that you simply need to shield then you would possibly consider an invisible computer controlled surveillance camera system.

    With an uncertain economic future plus the connection it’s to
    crime, a growing number of everyone is turning towards the latest in security alarms to
    provide safety because of their families. Home security eugene or
    You could also use the wireless security systems to get protection against intrusions and

    You can maintain security of your house in numerous ways; a Security Alarm system could be the first step up securing your house.
    For this reason, one with the best actions you may take in relation to its security is always to never follow precisely the same routine.

  15. boafung says:

    It seems that no reason that decides the matter has thus far been proposed.
    Sales tactics are aggressive and countless systems are offered to clients that will be better off without them.
    Baofeng a52 manual They are an outstanding value-efficient entry-stage radios for everyone desirous to function inside distinct sight the maximum amount of
    as approx.

    Lots of meditation; but additionally, stretching to work having a wider audience and sharing my gifts
    as well. Review baofeng uv-5r Almost every aftermarket stereo I’ve seen comes with an auxiliary port around the front, with a
    lot of even including a USB port, too. Taylor Swift is greeting everyone as she arrives in the
    the BBC Radio 1 Teen Awards 2012.

  16. Giving your guests something they can use they will really appreciate the favor and they
    also not only disregard the fact that they celebrate with
    you. Burring and irritation with the tongue, lips, and mouth, vomiting,
    trouble swallowing, and excessive drooling are signs that your
    pet has ingested Elephant’s Ears. Based on “Lassie Come Home,” a story by Eric Knight, the show
    later appeared in the media, as a family favorite from 1954 to

    The unique curved petals from the calla lily are as white as you possibly can, along with
    the yellow centers protrude to create a sensational show. No appear combination you use, your fall wedding bouquet will probably be wonderful.

  17. With increase inside processing capabilities of cellular phone, mobile gaming is growing leaps and bounds.

    The Alienware Area 51 ALX, customized by having an Extereme
    i7 Processor, customized video card upgrade, and 12GB or RAM.
    Ibuypower jersey GR-TEK Custom Built Computers Core
    i7 & Gaming Computers have greater than 20 years expertise in building good quality gaming desktops.

    This implies that you should focus on choosing the best formats to incorporate as background songs for both your movie as well as your games.

    Some Xbox 360 gaming systems can be equipped with Netflix which is often a movie rental agency.

  18. The flower popularity motifs is strongly linked with nature which had
    a unique influence on human existence. Many brides
    opt to hand their bridal boutique which may be preserved in a very meaningful picture frame among their wedding pictures.
    Flower in the crannied wall You might contact the undesirable
    weeds from the flower bed which may have overgrown the many lovely blooms until such time as merely the weeds remain.

    The biggest issues with taking hummingbird pictures is they rarely hold still.
    The next thing you ought to expect out there florists could be the selection and variety with
    the flowers they’ll use at events.

  19. Technically, webcams belong for this class however the time period denotes a burglar
    camera. The camera has produced-in 30 IR lights for night vision range (around 8-13 Meter) Built-in microphone for audio monitoring.

    It does come equipped while using standard features including great
    car stereo quality, inbuilt Wi-Fi, DLNA certified an internet-based streaming media services.
    Infrared – These devices utilize an infrared (IR) beam for you the sound in the base unit to your headphone, getting work done in much the identical way because the remote control to your TV.

    Amped wireless smart repeater setup Therefore, the sound actually becomes clearer and adapts on your hearing.

  20. Finally, towards the brilliant one that created the beautiful glass lid that permits me to
    see, entranced, as our blackened socks turn white again, I is only
    able to say, congratulations. Whirlpool cabrio f1 error code The local chamber of commerce can supply you using the names of local companies
    that give you the services you would like.

    The pairs have collected a lot more than 400 appliances,
    trying out space in each every room into their home. In fact, they may be available
    within a variety of textures and colors.

Leave a Reply

Your email address will not be published. Required fields are marked *