for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author nicolaas [at] sunnysideup.co.nz
*
* @description: this represents a sub group of a list, otherwise known as a segment
**/
class CampaignMonitorSegment extends DataObject
You can fix this by adding a namespace to your class:
namespace YourVendor; class YourClass { }
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.
{
private static $db = array(
$db
This check marks private properties in classes that are never used. Those properties can be removed.
"Title" => "Varchar(64)",
"SegmentID" => "Varchar(32)",
"ListID" => "Varchar(32)"
);
private static $summary_fields = array(
$summary_fields
"Title" => "Title"
private static $indexes = array(
$indexes
"SegmentID" => true,
"ListID" => true
private static $has_one = array(
$has_one
"CampaignMonitorSignupPage" => "CampaignMonitorSignupPage"
public function canCreate($member = null)
return false;
}
public function canDelete($member = null)
public function canEdit($member = null)
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.