7d6f69ec1d
Upgrade PHPStan level to 3
...
[MAILPOET-1915]
2019-03-21 14:02:59 -04:00
114a8281a9
Fix tests, code typos and style
2019-03-21 10:03:21 -04:00
31a8ca2dc0
Refactor Model::_createOrUpdate
2019-03-21 10:03:21 -04:00
ab097d356a
Fix PHPStan errors
2019-03-07 08:30:14 -05:00
0a436087e1
Replace all WP function calls
2019-03-07 08:30:14 -05:00
abaf7e5c93
Make models without 'deleted_at' field duplicable [PREMIUM-114]
2019-03-04 07:50:00 -05:00
bed80e67f1
Use phpstan level 2
...
[MAILPOET-1822]
2019-02-21 13:49:52 -05:00
3ee58aea10
Add space between if and ‘(‘
...
[MAILPOET-1791]
2019-02-13 08:26:27 -05:00
9e9561e576
Add space between catch and ‘(‘
...
[MAILPOET-1791]
2019-02-13 08:26:27 -05:00
a8972ca281
Add space between switch and ‘(‘
...
[MAILPOET-1791]
2019-02-13 08:26:27 -05:00
ebbdec5ebd
Add space between foreach and ‘(‘
...
[MAILPOET-1791]
2019-02-13 08:26:27 -05:00
9f533ad5c7
Fix undefined method
2019-01-29 08:17:55 +01:00
1af4666744
Declare missing properties and methods for PHPStan
2019-01-23 21:30:24 +02:00
e13789b768
Fix "Static call to instance method" errors on Models
...
Paris uses magic methods to create model instance for static calls
2019-01-23 18:44:43 +02:00
c09766a4df
Add undocumented Model methods to PHPDoc to fix Premium rules
2019-01-23 16:36:17 +02:00
9f13f68e39
Fix "Access to undefined property" rule violations
2019-01-23 11:33:47 +02:00
7b859660b7
End support for PHP 5.5 [MAILPOET-1317]
2018-10-31 15:21:34 +03:00
60ce501c20
Purge old logs
...
[MAILPOET-570]
2018-08-28 14:36:22 +02:00
99edc35b08
Handle bulk operations on subscribers filtered by dynamic segments
...
[PREMIUM-69]
2018-02-28 17:12:56 +00:00
b076e03a75
using static
instead of self
...
renaming `internalCreateOrUpdate` to `_createOrUpdate`
renaming `$conditions` to `$keys`
adding block comment for `_createOrUpdate` method.
2018-02-12 11:15:46 +00:00
91622f8cd9
refactoring createOrUpdate method of models
2018-02-07 18:10:49 +00:00
8ff28fd974
Return error code for duplication errors
...
[PREMIUM-42]
2018-02-05 14:34:15 +00:00
cf00813c7f
Adds new method to validate model on request
...
Cleans up code formatting
2017-07-24 11:20:43 -04:00
5f74f34cba
Adds notes explaining the fix
2017-07-17 12:15:39 -04:00
a4dad46fb7
Adds asArray() method to the base Model that's used as proxy for
...
Idiorm's as_array()
2017-07-15 14:25:50 -04:00
a4282b6a3e
Don't leak connection data in PDO exceptions [MAILPOET-966]
2017-06-30 09:29:48 +01:00
d27968a215
Uses WP's is_email() to validate email addresses in Subscriber model
2017-06-04 18:19:37 -04:00
bfc04bfa87
Fix bulk trashing/restoring not working for newsletters/forms on PHP 5.3 [MAILPOET-835]
2017-02-24 15:10:38 +03:00
7fbf84db1f
converted text domain to string instead of constant
2016-09-30 09:58:26 +02:00
42202f676a
updated Env::plugin_name to constant for text domain
2016-09-27 14:54:23 +02:00
ba6198f956
added textdomain to __() calls
2016-09-27 14:53:44 +02:00
4ebdff49e0
make Model::setTimestamp() public
2016-09-07 10:26:08 +02:00
4a72995bf4
fix bulk actions and messages
2016-09-06 17:21:15 +02:00
d93249f077
form & listing jsx update + Segment endpoint conversion
2016-09-05 11:51:58 +02:00
42339927cf
- Extends ORM's isNew() method to work on saved models
2016-08-22 09:26:25 -04:00
0ac701eb20
Change line endings from DOS CRLF to Unix LF
2016-06-30 18:52:07 +03:00
55d48df8a4
Fix indentation issues
2016-06-30 18:50:48 +03:00
67661e3aad
Remove useless constructors
2016-06-30 18:50:48 +03:00
306cdeb68f
Models unit tests update
2016-06-27 13:53:56 +02:00
bc1fb235d3
- Removes unused method from the base model. Closes #511
2016-06-07 18:47:00 -04:00
8292e9a744
Revert batch processing on bulk actions - too buggy
...
- minor fixes and cleanup
2016-05-27 14:15:46 +02:00
3c46a5b434
Optimized Bulk actions
...
- Updated SQL schema for every created_at column so that it has a default value
- Updated unit tests based on recent changes (new methods in SubscriberSegment model)
- Added check for HelpScout initialization code so that it doesn't throw errors
2016-05-27 14:15:46 +02:00
ceebb18bdf
minor spacing fix
2016-05-27 14:14:35 +02:00
d10a29598d
prevent deletion of WP Users segment in Segments listing
2016-05-27 14:14:35 +02:00
8c56c8da5e
Fixed bulk actions (return false if no items were selected)
...
- added missing check for WPUsers segment in case it does not exist
2016-05-27 14:14:35 +02:00
c4ddb38d18
Prevent WP users from being trashed/deleted
...
- return actual rowCount of affected rows for bulk actions (based on PDO last statement)
- prevent removal of WP Users segment relationship with subscribers.
2016-05-27 14:14:35 +02:00
cf6466197a
Fixed Subscribers' bulk actions when filtering by a segment
...
- filter by segment is now affected by the selected group (all, trash,...)
- updated relationship methods between subscribers & segments (to account for subsegment status)
2016-02-29 13:34:17 +01:00
67036ddb61
cleanup and bugfix on bulk actions
2016-02-15 15:50:47 +01:00
6c0f6a07cd
removed useless constant
2016-02-15 15:40:21 +01:00
8139a7dd0a
Subscribers page review
...
- added screen option to set number of items per page
- improved bulk actions in order to handle large sets
2016-02-15 15:40:21 +01:00