当前位置: 首页>>代码示例>>PHP>>正文


PHP SocialTable::load方法代码示例

本文整理汇总了PHP中SocialTable::load方法的典型用法代码示例。如果您正苦于以下问题:PHP SocialTable::load方法的具体用法?PHP SocialTable::load怎么用?PHP SocialTable::load使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在SocialTable的用法示例。


在下文中一共展示了SocialTable::load方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: load

 public function load($keys = null, $reset = true)
 {
     $state = parent::load($keys, $reset);
     if (!$state) {
         return false;
     }
     $this->extractParams();
     return true;
 }
开发者ID:knigherrant,项目名称:decopatio,代码行数:9,代码来源:accessrules.php

示例2: load

 /**
  * Override parent's load implementation
  *
  * @since   1.0
  * @access  public
  * @param   int     The unique row id.
  * @param   bool    True to reset the default values before loading the new row.
  *
  * @author  Mark Lee <mark@stackideas.com>
  */
 public function load($key = null, $reset = true)
 {
     $state = parent::load($key, $reset);
     // @rule: We want to see which steps the user has already walked through.
     if (empty($this->step_access)) {
         $this->step_access = array();
     }
     if (!empty($this->step_access) && is_string($this->step_access)) {
         $this->step_access = explode(',', $this->step_access);
     }
     return $state;
 }
开发者ID:BetterBetterBetter,项目名称:B3App,代码行数:22,代码来源:stepsession.php

示例3: load

 /**
  * Overrides parent's load implementation
  *
  * @since	1.0
  * @access	public
  */
 public function load($keys = null, $reset = true)
 {
     if (is_array($keys)) {
         return parent::load($keys, $reset);
     }
     if (!isset(self::$_streams[$keys])) {
         $state = parent::load($keys);
         self::$_streams[$keys] = $this;
         return $state;
     }
     return parent::bind(self::$_streams[$keys]);
 }
开发者ID:BetterBetterBetter,项目名称:B3App,代码行数:18,代码来源:stream.php

示例4: load

 public function load($id = null, $reset = true)
 {
     if (is_array($id)) {
         return parent::load($id, $reset);
     }
     if (!isset(self::$_shares[$id])) {
         parent::load($id);
         self::$_shares[$id] = $this;
     } else {
         $this->bind(self::$_shares[$id]);
     }
     return true;
 }
开发者ID:knigherrant,项目名称:decopatio,代码行数:13,代码来源:share.php

示例5: load

 public function load($uid = null, $userId = null, $type = SOCIAL_STREAM_HIDE_TYPE_STREAM)
 {
     if (empty($uid) || empty($userId)) {
         return false;
     }
     $db = FD::db();
     $query = 'select `id` from `#__social_stream_hide`';
     $query .= ' where `user_id` = ' . $db->Quote($userId);
     $query .= ' and `uid` = ' . $db->Quote($uid);
     $query .= ' and `type` = ' . $db->Quote($type);
     $db->setQuery($query);
     $id = $db->loadResult();
     return parent::load($id);
 }
开发者ID:knigherrant,项目名称:decopatio,代码行数:14,代码来源:streamhide.php

示例6: load

 /**
  * Override parent's load implementation
  *
  * @since	1.0
  * @access	public
  * @param	int		The unique row id.
  * @param   bool	True to reset the default values before loading the new row.
  *
  * @author	Mark Lee <mark@stackideas.com>
  */
 public function load($key = null, $reset = true)
 {
     $state = parent::load($key, $reset);
     // If state is false, then we create the session here
     if (!$state) {
         $session = JFactory::getSession();
         $this->session_id = $session->getId();
         $this->created = FD::date()->toSql();
         $state = $this->store();
     }
     // @rule: We want to see which steps the user has already walked through.
     if (empty($this->step_access)) {
         $this->step_access = array();
     }
     if (!empty($this->step_access) && is_string($this->step_access)) {
         $this->step_access = explode(',', $this->step_access);
     }
     return $state;
 }
开发者ID:BetterBetterBetter,项目名称:B3App,代码行数:29,代码来源:registration.php

示例7: load

 public function load($uid = null, $utype = '', $component = 'com_easysocial')
 {
     if (empty($uid)) {
         return false;
     }
     if ($utype) {
         $db = FD::db();
         $query = 'select * from ' . $db->nameQuote('#__social_indexer');
         $query .= ' where ' . $db->nameQuote('uid') . ' = ' . $db->Quote($uid);
         $query .= ' and ' . $db->nameQuote('utype') . ' = ' . $db->Quote($utype);
         $query .= ' and ' . $db->nameQuote('component') . ' = ' . $db->Quote($component);
         $db->setQuery($query);
         $result = $db->loadObject();
         if (!$result) {
             return false;
         }
         parent::bind($result);
     } else {
         parent::load($uid);
     }
     return true;
 }
开发者ID:knigherrant,项目名称:decopatio,代码行数:22,代码来源:indexer.php

示例8: load

 /**
  * Overrides parent's load implementation
  *
  * @since	1.0
  * @access	public
  */
 public function load($keys = null, $reset = true)
 {
     $loadFromUid = false;
     if (is_array($keys)) {
         if (count($keys) == 1 && isset($keys['uid'])) {
             $loadFromUid = true;
         } else {
             return parent::load($keys, $reset);
         }
     }
     $state = false;
     if ($loadFromUid) {
         $uid = $keys['uid'];
         if (!isset(self::$_streamitems[$uid])) {
             $state = parent::load(array('uid' => $uid));
             self::$_streamitems[$uid] = $this;
             return $state;
         }
         $state = parent::bind(self::$_streamitems[$uid]);
     } else {
         $state = parent::load($keys, $reset);
     }
     return $state;
 }
开发者ID:knigherrant,项目名称:decopatio,代码行数:30,代码来源:streamitem.php

示例9: loadByField

 /**
  * Deprecated. Redirected to native load function instead.
  *
  * @author Jason Rey <jasonrey@stackideas.com>
  * @since  1.0
  * @deprecated Deprecated since 1.2. Use native load function instead.
  * @access public
  * @param  Int		$fieldId	The field id
  * @param  Int		$uid		The target unique id
  * @param  String	$type		The target type
  * @return SocialTableFieldData	The table object
  */
 public function loadByField($fieldId, $uid, $type)
 {
     return parent::load(array('field_id' => $fieldId, 'uid' => $uid, 'type' => $type));
 }
开发者ID:knigherrant,项目名称:decopatio,代码行数:16,代码来源:fielddata.php

示例10: load

 /**
  * Overrides parent's load implementation
  *
  * @since   1.0
  * @access  public
  */
 public function load($keys = null, $reset = true)
 {
     if (self::$_cache) {
         if (is_array($keys)) {
             return parent::load($keys, $reset);
         }
         if (!isset(self::$_photos[$keys])) {
             $state = parent::load($keys);
             self::$_photos[$keys] = $this;
             return $state;
         }
         if (is_bool(self::$_photos[$keys])) {
             return false;
         }
         return parent::bind(self::$_photos[$keys]);
     } else {
         return parent::load($keys, $reset);
     }
 }
开发者ID:ppantilla,项目名称:bbninja,代码行数:25,代码来源:photo.php

示例11: loadBySequence

 /**
  * Depcreated in 1.3. Use native load function instead.
  * Retrieves a particular step based on the sequence and the workflow id.
  *
  * Example:
  * <code>
  * <?php
  * $table 	= FD::table( 'Workflow' );
  * $table->loadBySequence( JRequest::getInt( 'profileId' ) , JRequest::getInt( 'step' ) );
  * ?>
  * </code>
  *
  * @deprecated		Depcreated since 1.3. Use native load function instead.
  * @since	1.0
  * @param   int		The unique profile id.
  * @param   int     The sequence / step.
  * @return  bool	True on success, false otherwise.
  *
  * @author	Mark Lee <mark@stackideas.com>
  */
 public function loadBySequence($uid, $type = SOCIAL_TYPE_USER, $sequence)
 {
     return parent::load(array('uid' => $uid, 'type' => $type, 'sequence' => $sequence));
 }
开发者ID:knigherrant,项目名称:decopatio,代码行数:24,代码来源:fieldstep.php


注:本文中的SocialTable::load方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。