 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
DevShed: Using the Clone Magic Function in PHP 5
by Chris Cornutt June 15, 2009 @ 12:04:25
New on DevShed today is the latest article in their "magic functions" series. This time they focus on the "clone" method to create exact copies of current objects.
In this fifth part of a seven-part tutorial on magic functions, we'll briefly review the sleep and wakeup functions, and then tackle the clone function. [...] So, with that goal in mind, in this fifth part of the series I'm going to take a closer look at the "__clone()" method, which as its name suggests, is called behind the scenes when using the "clone" PHP keyword.
Their example code adds on to the previous examples using "__get" and "__set" and adds in a method to catch the cloning of an object. It only outputs a string ("Cloning user object") when its called, but it lets you get the idea.
voice your opinion now!
method magic tutorial clone
SitePoint Web Tech Blog: Roll Your Own Twitter Clone
by Chris Cornutt April 21, 2009 @ 09:31:19
On the SitePoint Web Tech blog Raena Jackson-Armitage has a recent post on a few tools that you can use to mimic some of the functionality Twitter offers (three of them) with applications that already exist.
If you're anything like me, you've already wondered how easy it would be to make your own'"perhaps you'd like to set up a microblog for you and your colleagues to share links and have discussions. [...] Today we'll look at three new solutions that are easy to set up, have reasonably modest hosting requirements, and even include some features that blow Twitter out of the water.
They suggest three tools:
Each of these comes with a description of installation, features offered and use.
voice your opinion now!
identica laconica motion movabletype p2 wordpress clone twitter
Raphael Stolt's Blog: Creating and using Phing ad hoc tasks
by Chris Cornutt April 20, 2009 @ 08:49:38
Raphael Stolt has another post dealing with the Phing (PHP-based) build tool. This time he talks about making ad hoc tasks inside of your build scripts.
Sometimes there are build scenarios where you'll badly need a functionality, like adding a MD5 checksum file to a given project, that isn't provided neither by the available Phing core nor the optional tasks. [...] The following post will try to outline how to define and use these inline tasks, by sketching an ad hoc task that enables the build orchestra to clone Git repositories from GitHub during a hypothetical workbench setup.
He creates an example task - running a "clone" command via github - complete with the code for both sides of the feature; the PHP code to create the task and how to use it in your build file.
voice your opinion now!
tool build example clone github task adhoc phing create
|
Community Events
Don't see your event here? Let us know!
|