/** * 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); } }
/** * 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; }