Index of /php/restobook

      Name                    Last modified       Size  Description

[DIR] Parent Directory 15-Aug-2007 11:23 - [TXT] Changes 15-Aug-2007 10:42 1k [   ] Restobook-0.1.tar.gz 15-Aug-2007 10:42 2k

NAME
    Restobook - Simple PHP class for creating and parsing 'restobook' syntax

SYNOPSIS
            $str = ":address \"1062 Valencia San Francisco CA\"; :phone \"415-555-1212\";";
            $rb = new Restobook();

            if ($rb->parse($str)){

                    echo $rb->address();

                    $rb->set("hours", "M-F 06H00-23H00");
                    echo $rb->get("hours");
            }

DESCRIPTION
    Simple PHP class for creating and parsing 'restobook' syntax.

WHAT IS THE RESTOBOOK SYNTAX?
    The 'restobook' syntax is, principally, a stripped down way of adding
    formatted/semantic text to the description field in del.icio.us

     ":" + label + " " + """ + value + """ + ";"

PACKAGE METHODS
  new Restobook()
    Returns a *Restobook* object.

OBJECT METHODS
  $obj->parse($str)
    Returns the number of successful matches for 'restobook' formatted
    properties.

  $obj->address($addr='')
    Helper method to get and/or store an address.

    Returns a 'restobook' formatted string.

  $obj->phone($phone='')
    Helper method to get and/or store an phone.

    Returns a 'restobook' formatted string.

  $obj->get($property, $raw=0)
    Get a given property, parsed or added by the user.

    By default returns a 'restobook' formatted string, unless *$raw* is
    true.

  $obj->set($property, $value)
    Set the value for a property.

  $obj->getstore($property, $value)
    Helper method to store a property and return its value as a 'restobook'
    formatted string.

VERSION
    0.1

DATE
    $Date: 2007/08/15 02:25:09 $

AUTHOR
    Aaron Straup Cope <http://www.aaronstraupcope.com/>

SEE ALSO
    <http://www.aaronland.info/weblog/2007/07/28/trees/#delmaps>

BUGS
    Sure. Why not.

LICENSE
    Copyright (c) 2007 Aaron Straup Cope.

    This is free software, you may use it and distribute it under the same
    terms as Perl itself.