Skip to main content
Ryan Price and the Media
Commanding Chaos for Coworking, Open Source and Creative Communities

Main navigation

  • Blog
  • About
  • Contact
  • Subscribe
  • Drupal Easy
  • Florida Creatives
  • Liberatr
  • Lifestream
  • ThinkUp
  • Home
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Php

php

By rprice , 29 February 2012

Proposal for unified namespace organization | drupal.org

Link
http://drupal.org/node/1400748
Drupal Drupal\Component\$component Drupal\Core\$subsytem Drupal\Module\$module Drupal\Hook and Drupal\Module\$module\Hook
namespaces
drupaleasypodcast
php
drupal8
By rprice , 29 February 2012

Proposal for fixing PHP namespacing in Drupal 8 | Blog post | Blue Droplet Media

Link
http://bluedroplet.com/blog/proposal-fixing-php-namespacing-drupal-8
Modules and themes (and engines) would have a namespace such as namespace drupal\taxonomy; or namespace drupal\bartik; Function prefixes, such as 'taxonomy_' would be dropped. However, this makes Drupal code really ugly. Calling functions not in a module from a module would look like this: \drupal\set_message(); Calling a db function would look like this: \drupaldb\select('node'); Calling an API function in another module would look like: \drupal\taxonomy\select_nodes(); The solution?
function
oop
drupaleasypodcast
drupal8
php
namespaces
By rprice , 29 February 2012

Use PHP 5.3 namespaces | drupal.org

Link
http://drupal.org/node/867772
At the very least (if we are on PHP 5.3) we could have something like: namespace drupal\dblog; at the top of every file. Files in the includes directory would have: namespace drupal; The only time 'drupal' would be seen in a function name would be when calling an API function in a different module, e.g. \drupal\system\flush_caches();
oop
php
drupaleasypodcast
core
drupal8
By rprice , 29 February 2012

Adopt PSR-0 namespace convention for core framework classes | drupal.org

Link
http://drupal.org/node/1240138
1) We've been discussing how and if to leverage PHP namespaces in Drupal 8, now that we have access to them in PHP 5.3. To date most of the discussion has been on tricking out modules-as-namespace, a discussion that has stalled as it is a much more complicated problem space than it seems at first glance.
oop
php
drupaleasypodcast
core
drupal8
By rprice , 29 February 2012

PHP: Using namespaces: Basics - Manual

Link
http://us2.php.net/manual/en/language.namespaces.basics.php
There are three ways to access a file in a file system: Relative file name like foo.txt. This resolves to currentdirectory/foo.txt where currentdirectory is the directory currently occupied. So if the current directory is /home/foo, the name resolves to /home/foo/foo.txt. Relative path name like subdirectory/foo.txt. This resolves to currentdirectory/subdirectory/foo.txt. Absolute path name like /main/foo.txt. This resolves to /main/foo.txt.
drupal8
core
php
drupaleasypodcast

Pagination

  • Previous page
  • 4
php
Twitter / liberatrRyan Price | Facebook Flickr: Photos from Liberatr.netInstagramYouTube :: Videos by liberatrLinkedIn: Ryan Price

I am nobody's puppet.

Disclaimer: My blogs are not a reflection of my employer's opinions, but are my own, and often unfiltered. Also, some links on this site may be part of an Amazon Associates program, so by clicking on them you help me pay for my independence.

Drupal Association - Individual Member Acquia Certified Developer Acquia Certified Developer Miro Video Player | Download torrents and podcasts, play any video, and do it with style. Gimp - a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. Processing is an electronic sketchbook for developing ideas. Build a custom arts management solution. LibreOffice is the free power-packed personal productivity suite that gives you six feature-rich applications for all your document production and data processing needs

  • Thanks again, Steve. I hope
    14 years 1 month ago
  • Hi - bit late responding here
    14 years 1 month ago
  • Should have added...
    14 years 2 months ago
  • Hi Ryan,
    14 years 2 months ago
  • Ryan,
    14 years 2 months ago
  • It is happening and you are
    14 years 5 months ago
  • In close future I want to
    14 years 8 months ago
  • the article has been
    14 years 9 months ago
  • I think it's a great coup for
    14 years 9 months ago
  • My hardware box acts as an
    14 years 10 months ago

  • Blogging Fringe
  • Bringing Art and Technology Together
  • Drupal Easy Podcast
  • Florida Creatives Podcast
  • Invisible Frisbee
  • Liberatr.net Facebook
  • Liberatr.net
  • Orlando Podcasters
  • Orlando Scene TV
  • Orlando Video
  • Our Yellow House
  • Pulpp.net Orlando Blogs
  • Pulpp.org Real-Time Collaboration
  • Shrink Your Ecological Footprint
  • The Student of the Game

  • Alex Rudloff
  • Apartment E
  • Brian Feldman
  • Chad Miller
  • Charles Krueger
  • Chris Messina
  • Chris Scott
  • Chris Wojda
  • Daniel H. Pink
  • Daniel Smith
  • Darren McDaniel
  • David Terrar
  • Destination Journal
  • Dr. XNLB
  • Elizabeth Maupin
  • Eric Marden
  • Hugh McLeod
  • Jana Waring
  • Jeremy Harrington
  • John Rife
  • Josh Hallet
  • Katie Ball
  • Katharine Miller
  • Lloyd Davis
  • Loren Feldman
  • marc. with a c.
  • Marc Rapp
  • Mario Andy Lurig
  • Mark Baratelli
  • Mike G
  • Noel Hidalgo
  • PSFK
  • Rebekah Lane
  • Stephen Matheny
  • Thomas Thorspecken
  • Tim Welch

  • Florida Drupal Group
  • Izon Orlando
  • Orlando Coworking
  • Orlando Fringe
  • Orlando Improv Festival
  • Orlando PHP
  • Orlando Puppet Festival
  • Page 15
  • The Daily City
  • Urban ReThink

Powered by Drupal

<none>

  • RSS Feed