initializeAttributes() 보호된 메소드

Initialize the attributes array to include the type, title, and description.
protected initializeAttributes ( ) : void
리턴 void
예제 #1
0
 /**
  * Initialize base attributes
  *
  * @see ElggObject::initializeAttributes()
  *
  * @return void
  */
 protected function initializeAttributes()
 {
     parent::initializeAttributes();
     $this->attributes["subtype"] = self::SUBTYPE;
     $this->attributes["owner_guid"] = elgg_get_config("site_guid");
     $this->attributes["container_guid"] = elgg_get_config("site_guid");
 }
예제 #2
0
 /**
  * Set subtype to 'plugin'
  *
  * @return void
  */
 protected function initializeAttributes()
 {
     parent::initializeAttributes();
     $this->attributes['subtype'] = "plugin";
     // plugins must be public.
     $this->access_id = ACCESS_PUBLIC;
 }
예제 #3
0
 protected function initializeAttributes()
 {
     parent::initializeAttributes();
     $this->attributes['subtype'] = 'hjfield';
     $this->attributes['owner_guid'] = elgg_get_site_entity()->guid;
     $this->attributes['access_id'] = ACCESS_PUBLIC;
 }
예제 #4
0
 protected function initializeAttributes()
 {
     parent::initializeAttributes();
     $this->siteDomain = get_site_domain($CONFIG->site_guid);
     $this->site = elgg_get_site_entity();
     $this->approvedDomains = ['forces.gc.ca', 'test.gc.ca'];
 }
예제 #5
0
 function initializeAttributes()
 {
     parent::initializeAttributes();
     $this->userGuid = $this->getUserGuid();
     $this->user = $this->getUser();
     $this->userName = $this->getUserName();
 }
예제 #6
0
 protected function initializeAttributes()
 {
     parent::initializeAttributes();
     $this->attributes['access_id'] = ACCESS_PUBLIC;
     $this->attributes['owner_guid'] = elgg_get_site_entity()->getGUID();
     $this->attributes['container_guid'] = elgg_get_site_entity()->getGUID();
 }
예제 #7
0
 /**
  * Initialize base attributes
  *
  * @see ElggObject::initializeAttributes()
  *
  * @return void
  */
 protected function initializeAttributes()
 {
     parent::initializeAttributes();
     $this->attributes["subtype"] = self::SUBTYPE;
     $this->attributes["access_id"] = ACCESS_PRIVATE;
     $this->status = self::OPEN;
 }
 protected function initializeAttributes()
 {
     global $CONFIG;
     parent::initializeAttributes();
     $this->attributes['access_id'] = ACCESS_PUBLIC;
     $this->attributes['owner_guid'] = $CONFIG->site_guid;
     $this->attributes['container_guid'] = $CONFIG->site_guid;
 }
예제 #9
0
 /**
  * (non-PHPdoc)
  * @see ElggObject::initializeAttributes()
  */
 public function initializeAttributes()
 {
     parent::initializeAttributes();
     $site = elgg_get_site_entity();
     $this->attributes['subtype'] = self::SUBTYPE;
     $this->attributes['owner_guid'] = $site->getGUID();
     $this->attributes['access_id'] = ACCESS_LOGGED_IN;
     $this->order = time();
 }
예제 #10
0
 /**
  * overrule / extend some parent functions
  * 
  * @return void
  * 
  * @see ElggObject::initializeAttributes()
  */
 protected function initializeAttributes()
 {
     parent::initializeAttributes();
     $site = elgg_get_site_entity();
     $this->attributes["subtype"] = self::SUBTYPE;
     $this->attributes["access_id"] = ACCESS_PUBLIC;
     $this->attributes["owner_guid"] = $site->getGUID();
     $this->attributes["container_guid"] = $site->getGUID();
 }
 /**
  * Initializes attributes for this class
  *
  * @return void
  *
  * @see ElggObject::initializeAttributes()
  */
 public function initializeAttributes()
 {
     parent::initializeAttributes();
     $site = elgg_get_site_entity();
     $this->attributes['subtype'] = self::SUBTYPE;
     $this->attributes['owner_guid'] = $site->getGUID();
     $this->attributes['container_guid'] = $site->getGUID();
     $this->attributes['access_id'] = ACCESS_PRIVATE;
 }
예제 #12
0
파일: ElggUpgrade.php 프로젝트: elgg/elgg
 /**
  * Set subtype to upgrade
  *
  * @return null
  */
 public function initializeAttributes()
 {
     parent::initializeAttributes();
     $this->attributes['subtype'] = 'elgg_upgrade';
     // unowned
     $this->attributes['container_guid'] = 0;
     $this->attributes['owner_guid'] = 0;
     $this->is_completed = 0;
 }
예제 #13
0
 /**
  * Set subtype to widget.
  *
  * @return void
  */
 protected function initializeAttributes()
 {
     parent::initializeAttributes();
     $this->attributes['subtype'] = "widget";
 }
예제 #14
0
 protected function initializeAttributes()
 {
     parent::initializeAttributes();
     $this->attributes['subtype'] = "tidypics_batch";
 }
예제 #15
0
 /**
  * @see ElggObject::initializeAttributes()
  */
 protected function initializeAttributes()
 {
     parent::initializeAttributes();
     $this->attributes['subtype'] = "remote_plugin_project";
     $this->attributes['access_id'] = ACCESS_PUBLIC;
 }
예제 #16
0
 /**
  * Set subtype
  */
 protected function initializeAttributes()
 {
     parent::initializeAttributes();
     $this->attributes['subtype'] = "task_pool";
 }
예제 #17
0
 /**
  * Set subtype to wire
  * 
  * @return void
  */
 protected function initializeAttributes()
 {
     parent::initializeAttributes();
     $this->attributes['subtype'] = 'wire';
 }
예제 #18
0
 protected function initializeAttributes()
 {
     parent::initializeAttributes();
     $this->attributes['subtype'] = "plugin_project";
 }
예제 #19
0
 function initializeAttributes()
 {
     parent::initializeAttributes();
 }
예제 #20
0
파일: Poll.php 프로젝트: lorea/Hydra-dev
 /**
  * Set subtype
  */
 protected function initializeAttributes()
 {
     parent::initializeAttributes();
     $this->attributes['subtype'] = $this::SUBTYPE;
 }
예제 #21
0
 protected function initializeAttributes()
 {
     parent::initializeAttributes();
     $this->attributes['subtype'] = "hjsegment";
     $this->attributes['access_id'] = ACCESS_PUBLIC;
 }
예제 #22
0
 protected function initializeAttributes()
 {
     parent::initializeAttributes();
     $this->attributes['subtype'] = "hjfilefolder";
 }
예제 #23
0
 /**
  * (non-PHPdoc)
  * @see ElggObject::initializeAttributes()
  */
 function initializeAttributes()
 {
     parent::initializeAttributes();
     $this->attributes['subtype'] = self::SUBTYPE;
 }
예제 #24
0
 /**
  * initializes the default class attributes
  *
  * @return void
  */
 protected function initializeAttributes()
 {
     parent::initializeAttributes();
     $this->attributes['subtype'] = self::SUBTYPE;
     $this->attributes['access_id'] = ACCESS_PUBLIC;
 }
예제 #25
0
 protected function initializeAttributes()
 {
     parent::initializeAttributes();
     $this->attributes['subtype'] = 'showcase';
     $this->attributes['access_id'] = ACCESS_PRIVATE;
 }
예제 #26
0
 function initializeAttributes()
 {
     parent::initializeAttributes();
     $this->attributes['subtype'] = 'answer';
 }
 /** Override */
 protected function initializeAttributes()
 {
     parent::initializeAttributes();
     $this->attributes['subtype'] = "notification";
 }
예제 #28
0
 protected function initializeAttributes()
 {
     parent::initializeAttributes();
     // override the default file subtype.
     $this->attributes['subtype'] = 'admin_note';
 }
 protected function initializeAttributes()
 {
     parent::initializeAttributes();
     $this->attributes["subtype"] = self::SUBTYPE;
 }
예제 #30
0
 /**
  *
  */
 protected function initializeAttributes()
 {
     parent::initializeAttributes();
     $this->attributes['subtype'] = 'scheduling_poll';
 }