/** * Get all placid tokens * @deprecated Deprecated in 1.3.* Use {@link AppBehavior::getBuild() craft()->placid_token->getAll()} instead. All these sort of methods are being combined for a more streamlined, DRY API. * @return Placid_TokenModel object */ public function getAllTokens() { $records = $this->record->findAll(array('order' => 't.id')); foreach ($records as $record) { $record->setAttribute('encoded_token', craft()->security->validateData($record->getAttribute('encoded_token'))); } return Placid_TokenModel::populateModels($records, 'id'); }
/** * Get all placid tokens * @deprecated Deprecated in 1.3.* Use {@link AppBehavior::getBuild() craft()->placid_token->getAll()} instead. All these sort of methods are being combined for a more streamlined, DRY API. * @return Placid_TokenModel object */ public function getAllTokens() { $records = Placid_TokenRecord::model()->findAll(array('order' => 't.id')); return Placid_TokenModel::populateModels($records, 'id'); }