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: 
 6: namespace Contentstack\Stack\ContentType\Entry;
 7: 
 8: use Contentstack\Stack\ContentType\BaseQuery\BaseQuery;
 9: use Contentstack\Utility;
10: 
11: require_once __DIR__."/base_query.php";
12: require_once __DIR__."/../utility.php";
13: 
14: class Entry extends BaseQuery {
15:     var $operation;
16:     var $_query;
17:     var $entryUid;
18:     var $contentType = array();
19: 
20:     /*
21:      * Entry
22:      * Entry Class to initalize your Entry
23:      * @param
24:      *      entry_uid: Entry to be fetched.
25:      * */
26:     public function __construct($entryUid = '', $contentType = '') {
27:         $this->entryUid = $entryUid;
28:         parent::__construct($contentType, $this);
29:         if(!\Contentstack\Utility\isEmpty($entryUid)) return $this;
30:     }
31: 
32:     /*
33:      * fetch
34:      * Fetch the specified entry
35:      * */
36:     public function fetch() {
37:         $this->operation = __FUNCTION__;
38:         return \Contentstack\Utility\request($this);
39:     }
40: }
API documentation generated by ApiGen