コード例 #1
0
 /**
  * Find token by ID
  *
  * @param string $id 
  * @deprecated Deprecated in 1.3.* Use {@link AppBehavior::getBuild() craft()->placid_token->getById()} instead. All these sort of methods are being combined for a more streamlined, DRY API.
  * @return Placid_TokenModel object
  */
 public function findTokenById($id)
 {
     if ($record = $this->tokenRecord->findByPk($id)) {
         return Placid_TokenModel::populateModel($record);
     }
 }
コード例 #2
0
ファイル: Placid_TokenService.php プロジェクト: andyra/tes
 /**
  * Find token by ID
  *
  * @param string $id 
  * @deprecated Deprecated in 1.3.* Use {@link AppBehavior::getBuild() craft()->placid_token->getById()} instead. All these sort of methods are being combined for a more streamlined, DRY API.
  * @return Placid_TokenModel object
  */
 public function findTokenById($id)
 {
     if ($record = Placid_TokenRecord::model()->findByPk($id)) {
         return Placid_TokenModel::populateModel($record);
     }
     return null;
 }