Overview

Namespaces

  • Contentstack
    • Error
    • Result
    • Stack
      • ContentType
        • BaseQuery
        • Entry
        • Query
    • Utility
  • None

Classes

  • Contentstack\Contentstack
  • Contentstack\Result\Result
  • Contentstack\Stack\ContentType\BaseQuery\BaseQuery
  • Contentstack\Stack\ContentType\ContentType
  • Contentstack\Stack\ContentType\Entry\Entry
  • Contentstack\Stack\ContentType\Query\Query
  • Contentstack\Stack\Stack

Exceptions

  • Contentstack\Error\CSException

Functions

  • addBoolean
  • comparision
  • contains
  • Contentstack\Utility\debug
  • Contentstack\Utility\generateQuery
  • Contentstack\Utility\generateQueryParams
  • Contentstack\Utility\getDomain
  • Contentstack\Utility\getLastActivites
  • Contentstack\Utility\headers
  • Contentstack\Utility\isEmpty
  • Contentstack\Utility\isKeySet
  • Contentstack\Utility\request
  • Contentstack\Utility\URL
  • Contentstack\Utility\validateInput
  • Contentstack\Utility\wrapResult
  • createError
  • existence
  • getFunctionName
  • language
  • logical
  • pagination
  • projection
  • references
  • regexp
  • search
  • sorting
  • tags
  • Overview
  • Namespace
  • Class
 1: <?php
 2: /*
 3:  * Dependency loading
 4:  * */
 5: namespace Contentstack\Stack\ContentType;
 6: 
 7: use Contentstack\Stack\ContentType\Entry\Entry;
 8: use Contentstack\Stack\ContentType\Query\Query;
 9: 
10: require_once __DIR__.'/entry.php';
11: require_once __DIR__.'/query.php';
12: 
13: /*
14:  * Class ContentType
15:  * */
16: class ContentType {
17:     var $uid = '';
18:     var $stack = '';
19: 
20:     /*
21:      * ContentType
22:      * ContentType Class to initalize your ContentType
23:      * @param
24:      *      contentTypeId - valid content type uid
25:      * */
26:     public function __construct($uid = '', $stack = '') {
27:         $this->uid = $uid;
28:         $this->stack = $stack;
29:     }
30: 
31:     /*
32:      * Entry
33:      * Entry object to create the "Query" on the specified ContentType
34:      * @returns Entry
35:      * */
36:     public function Entry($entry_uid = '') {
37:         return new Entry($entry_uid, $this);
38:     }
39: 
40:     /*
41:      * Query
42:      * Query object to create the "Query" on the specified ContentType
43:      * @returns Query
44:      * */
45:     public function Query() {
46:         return new Query($this);
47:     }
48: }
API documentation generated by ApiGen