Skip to content

Commit

Permalink
update verion, readme and request
Browse files Browse the repository at this point in the history
  • Loading branch information
robojuicedev committed Aug 10, 2015
1 parent 62c38a1 commit ef7be56
Show file tree
Hide file tree
Showing 3 changed files with 114 additions and 29 deletions.
56 changes: 28 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,33 +18,9 @@ http://typerocket.com
- Add fields to post types, comments, meta boxes, option pages, user profiles and even on the front-end inside theme template files.
- You can access a number of pre-made TypeRocket plugins for features like SEO and Theme Options installed directly into your theme.

### Story

We want you to be good looking and do cool stuff with less code; Whether you're a designer, developer or somewhere in between. This is why TypeRocket exists.

We want to enable everyone so they can build themes that are beautiful, inside and out.

Every small detail matters to us. The elegance of the framework, the simplicity and power of each line of code, the design and emotion behind every element. It all matters.

We really hope you love TypeRocket and as a result love WordPress even more.

Thank you,

Kevin

### Core Values

The TypeRocket project operates by the belief that:

1. Software development should be friendly for designers.
2. You should be in total control of how content is managed, experienced and displayed.
3. Managing content should be fun, easy and powerful.
4. Beauty should never be forgotten.
5. Content and design shouldn't be dependant on third-party Plugins.
6. Consistency leads to happiness.
7. We should give and go further.
### Documentation

Visit TypeRocket http://typerocket.com to get access to the tutorials and documentation.
https://typerocket.com/docs/

### Book Post Type Example

Expand Down Expand Up @@ -201,9 +177,33 @@ We made TypeRocket with design in mind first. Inside and out. Writing your code
- TypeRocket is fast! We use autoload (PSR-4) against the TypeRocket namespace so there are no conflicts.
- Rich commenting and doc blocks to enhance IDE and coding experience.

### Documentation
### Story

https://typerocket.com/docs/
We want you to be good looking and do cool stuff with less code; Whether you're a designer, developer or somewhere in between. This is why TypeRocket exists.

We want to enable everyone so they can build themes that are beautiful, inside and out.

Every small detail matters to us. The elegance of the framework, the simplicity and power of each line of code, the design and emotion behind every element. It all matters.

We really hope you love TypeRocket and as a result love WordPress even more.

Thank you,

Kevin

### Core Values

The TypeRocket project operates by the belief that:

1. Software development should be friendly for designers.
2. You should be in total control of how content is managed, experienced and displayed.
3. Managing content should be fun, easy and powerful.
4. Beauty should never be forgotten.
5. Content and design shouldn't be dependant on third-party Plugins.
6. Consistency leads to happiness.
7. We should give and go further.

Visit TypeRocket http://typerocket.com to get access to the tutorials and documentation.

### Icons

Expand Down
2 changes: 1 addition & 1 deletion core/start.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
| Set the version for TypeRocket using the style major.minor.patch
|
*/
define( 'TR_VERSION', '2.0.1' );
define( 'TR_VERSION', '2.0.2' );

/*
|--------------------------------------------------------------------------
Expand Down
85 changes: 85 additions & 0 deletions src/Http/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ class Request
private $get = null;
private $files = null;

/**
* Construct the request
*
* @param string $resource the resource
* @param string $method the method PUT, POST, GET, DELETE
* @param int $id the resource ID
*/
public function __construct( $resource, $method, $id )
{
$this->setResource( $resource );
Expand All @@ -28,70 +35,148 @@ public function __construct( $resource, $method, $id )

}

/**
* Set the method
*
* @param $method
*
* @return $this
*/
private function setMethod( $method )
{
$this->method = strtoupper( $method );

return $this;
}

/**
* Get the method
*
* @return null
*/
public function getMethod()
{
return $this->method;
}

/**
* Set the resource
*
* @param $resource
*
* @return $this
*/
private function setResource( $resource )
{
$this->resource = ucfirst( $resource );

return $this;
}

/**
* Get the resource
*
* @return null
*/
public function getResource()
{
return $this->resource;
}

/**
* Set the resource ID
*
* @param $id
*
* @return $this
*/
private function setResourceId( $id )
{
$this->id = $id;

return $this;
}

/**
* Get the Resource ID
*
* @return null
*/
public function getResourceId()
{
return $this->id;
}

/**
* Get the request URI
*
* @return null
*/
public function getUri()
{
return $this->uri;
}

/**
* Get the host
*
* @return null
*/
public function getHost()
{
return $this->host;
}

/**
* Get the $_POST data
*
* @return null
*/
public function getDataPost()
{
return $this->post;
}

/**
* Get the $_GET data
*
* @return null
*/
public function getDataGet()
{
return $this->get;
}

/**
* Get the $_POST files
*
* @return null
*/
public function getDataFiles()
{
return $this->get;
}

/**
* Get the fields
*
* @return array|null
*/
public function getFields()
{
return $this->fields;
}

/**
* Set the fields
*
* @param array $fields
*
* @return array
*/
public function setFields( array $fields)
{
return $this->fields = $fields;
}

}

0 comments on commit ef7be56

Please sign in to comment.