From: Chuck Hagenbuch Date: Sat, 10 Jan 2009 17:43:07 +0000 (-0500) Subject: remove dev script X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=2d0c0f1dfacf2a3773ddf92d59b05cce9a1e6f5c;p=horde.git remove dev script --- diff --git a/framework/Rdo/rdo.php b/framework/Rdo/rdo.php deleted file mode 100644 index 56755fc0e..000000000 --- a/framework/Rdo/rdo.php +++ /dev/null @@ -1,87 +0,0 @@ -count(); -echo "# users: $userCount\n"; - -// Get the number of new users in May 2005 -//$userCount = $um->count('created > \'2005-05-01\' AND created <= \'2005-05-31\''); -//echo "# new: $userCount\n"; - -// Check if id 1 exists. -$exists = $um->exists(1); -echo "exists: " . ($exists ? 'yes' : 'no') . "\n"; - -// Look for Alice -$userTwo = $um->find(Horde_Rdo::FIND_FIRST, array('name' => 'Alice')); -if ($userTwo) { - echo "Found Alice: id $userTwo->id\n"; -} else { - echo "No Alice found, creating:\n"; - $userOne = $um->create(array('name' => 'Alice', 'phone' => '212-555-6565')); - $userOneId = $userOne->id; - echo "Created new user with id: $userOneId\n"; -} - -// Change the name of the user and save. -if ($userTwo) { - $userTwo->name = 'Bob'; - $result = $userTwo->save(); - var_dump($result); -} - -// List all users. -echo "Looking for all:\n"; -foreach ($um->find(Horde_Rdo::FIND_ALL) as $userOb) { - echo " (" . $userOb->id . ") " . $userOb->name . "\n"; -} - -// Fetch id 2. -//$user = $um->find(2); -// Try to delete it. -//$result = $user->delete(); -//var_dump($result); - -/* -// $user->billingAddresses is an Iterator. -foreach ($user->billingAddresses as $billingAddress) { - echo $billingAddress->zipCode . "\n"; -} - -if ($user->favorite) { - echo $user->favorite->name . "\n"; -} else { - $user->favorite = new User(array('name' => 'Charles')); -} -*/