Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Craft::saving a record
private function logActivity(TweetPuller_TweetsRecord $record, $statusId)
$record->lastId = $statusId;
if ($record->save())
TweetPullerPlugin::log('Pull complete', LogLevel::Info, true);
$model = new TweetPuller_TweetsModel();
TweetPullerPlugin::log('Pull complete but an error occurred when logging activity: ' . implode(',', $model->allErrors), LogLevel::Info, true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.