Skip to content

Commit

Permalink
Remove unused properties
Browse files Browse the repository at this point in the history
  • Loading branch information
flack committed Oct 10, 2018
1 parent e10740c commit fc9e64b
Show file tree
Hide file tree
Showing 20 changed files with 4 additions and 90 deletions.
1 change: 0 additions & 1 deletion lib/midcom/db/person.php
Expand Up @@ -27,7 +27,6 @@
* @property string $country
* @property string $fax
* @property integer $orgOpenpsaAccesstype
* @property integer $orgOpenpsaWgtype
* @package midcom.db
*/
class midcom_db_person extends midcom_core_dbaobject
Expand Down
1 change: 0 additions & 1 deletion lib/org/openpsa/calendar/event.php
Expand Up @@ -24,7 +24,6 @@
* @property string $externalGuid
* @property string $vCalSerialized
* @property integer $orgOpenpsaAccesstype
* @property integer $orgOpenpsaWgtype
* @property string $orgOpenpsaOwnerWg
* @package org.openpsa.calendar
*/
Expand Down
1 change: 0 additions & 1 deletion lib/org/openpsa/contacts/group.php
Expand Up @@ -35,7 +35,6 @@
* @property string $vatNo
* @property integer $orgOpenpsaAccesstype
* @property integer $orgOpenpsaObtype
* @property integer $orgOpenpsaWgtype
* @package org.openpsa.contacts
*/
class org_openpsa_contacts_group_dba extends midcom_core_dbaobject
Expand Down
1 change: 0 additions & 1 deletion lib/org/openpsa/contacts/list.php
Expand Up @@ -16,7 +16,6 @@
* @property string $customerId
* @property integer $orgOpenpsaAccesstype
* @property integer $orgOpenpsaObtype
* @property integer $orgOpenpsaWgtype
* @package org.openpsa.contacts
*/
class org_openpsa_contacts_list_dba extends midcom_core_dbaobject
Expand Down
1 change: 0 additions & 1 deletion lib/org/openpsa/contacts/person.php
Expand Up @@ -27,7 +27,6 @@
* @property string $country
* @property string $fax
* @property integer $orgOpenpsaAccesstype
* @property integer $orgOpenpsaWgtype
* @package org.openpsa.contacts
*/
class org_openpsa_contacts_person_dba extends midcom_db_person
Expand Down
1 change: 0 additions & 1 deletion lib/org/openpsa/directmarketing/campaign.php
Expand Up @@ -16,7 +16,6 @@
* @property string $rulesSerialized
* @property integer $orgOpenpsaAccesstype
* @property integer $orgOpenpsaObtype
* @property integer $orgOpenpsaWgtype
* @property string $orgOpenpsaOwnerWg
* @package org.openpsa.directmarketing
*/
Expand Down
1 change: 0 additions & 1 deletion lib/org/openpsa/directmarketing/campaign/ruleresolver.php
Expand Up @@ -382,7 +382,6 @@ public static function list_object_properties(midcom_core_dbaobject $object, mid
$skip_properties = [
// These will be deprecated soon
'orgOpenpsaAccesstype',
'orgOpenpsaWgtype',
// Skip metadata for now
'metadata'
];
Expand Down
4 changes: 0 additions & 4 deletions lib/org/openpsa/documents/document.php
Expand Up @@ -21,10 +21,6 @@
status seems to be a reserved word in some layer between DM -> DB
* @property string $content plaintext representation of content, non-ML
* @property integer $orgOpenpsaAccesstype Shortcut for various ACL scenarios
* @property integer $orgOpenpsaWgtype will contain bitmask as integer
- 00(int=0) not a workgroup
- 01(int=1) is workgroup but not active
- 11(int=3) active workgroup
* @property string $orgOpenpsaOwnerWg The "owner" workgroup of this object
* @package org.openpsa.documents
*/
Expand Down
14 changes: 4 additions & 10 deletions lib/org/openpsa/projects/config/schemadb_default_project.inc
Expand Up @@ -147,16 +147,6 @@
'end_fieldset' => '',
],

'orgOpenpsaWgtype' => [
'title' => 'create workgroups for this project',
'storage' => 'orgOpenpsaWgtype',
'type' => 'boolean',
'widget' => 'checkbox',
'start_fieldset' => [
'title' => 'access control',
'css_group' => 'area acl',
],
],
'orgOpenpsaAccesstype' => [
'title' => 'access type',
'storage' => 'orgOpenpsaAccesstype',
Expand All @@ -165,6 +155,10 @@
'options' => org_openpsa_core_acl::get_options(),
],
'widget' => 'select',
'start_fieldset' => [
'title' => 'access control',
'css_group' => 'area acl',
],
],
'orgOpenpsaOwnerWg' => [
'title' => 'workgroup',
Expand Down
11 changes: 0 additions & 11 deletions lib/org/openpsa/projects/task.php
Expand Up @@ -28,18 +28,11 @@
* @property integer $priority
* @property integer $orgOpenpsaAccesstype Shortcut for various ACL scenarios
* @property integer $orgOpenpsaObtype Used to a) distinguish OpenPSA objects in QB b) store object "subtype" (project vs task etc)
* @property integer $orgOpenpsaWgtype will contain bitmask as integer
- 00(int=0) not a workgroup
- 01(int=1) is workgroup but not active
- 11(int=3) active workgroup
* @property string $orgOpenpsaOwnerWg The "owner" workgroup of this object
* @package org.openpsa.projects
*/
class org_openpsa_projects_task_dba extends midcom_core_dbaobject
{
const WGTYPE_NONE = 0;
const WGTYPE_INACTIVE = 1;
const WGTYPE_ACTIVE = 3;
const OBTYPE = 6002;

public $__midcom_class_name__ = __CLASS__;
Expand Down Expand Up @@ -243,10 +236,6 @@ private function _prepare_save()
return false;
}

if ($this->orgOpenpsaWgtype == self::OBTYPE) {
$this->orgOpenpsaWgtype = self::WGTYPE_NONE;
}

if ($agreement = $this->get_agreement()) {
// Get customer company into cache from agreement's sales project
try {
Expand Down
4 changes: 0 additions & 4 deletions lib/org/openpsa/sales/salesproject.php
Expand Up @@ -33,10 +33,6 @@
* @property float $invoicedHours
* @property float $invoiceableHours
* @property integer $orgOpenpsaAccesstype Shortcut for various ACL scenarios
* @property integer $orgOpenpsaWgtype will contain bitmask as integer
- 00(int=0) not a workgroup
- 01(int=1) is workgroup but not active
- 11(int=3) active workgroup
* @property string $orgOpenpsaOwnerWg The "owner" workgroup of this object
* @package org.openpsa.sales
*/
Expand Down
3 changes: 0 additions & 3 deletions schemas/org_openpsa_calendar.xml
Expand Up @@ -23,9 +23,6 @@

<!-- Shortcut for various ACL scenarios -->
<property name="orgOpenpsaAccesstype" type="integer"/>
<!-- will contain bitmask as integer, 00(int=0) not a workgroup, 01(int=1) is workgroup
but not active, 11(int=3) active workgroup -->
<property name="orgOpenpsaWgtype" type="integer"/>
<!-- The "owner" workgroup of this object -->
<property name="orgOpenpsaOwnerWg" type="string"/>

Expand Down
9 changes: 0 additions & 9 deletions schemas/org_openpsa_contacts.xml
Expand Up @@ -46,9 +46,6 @@
<property name="orgOpenpsaAccesstype" type="integer" />
<!-- Used to a) distinguish OpenPSA objects in QB b) store object "subtype" (project vs task etc) -->
<property name="orgOpenpsaObtype" type="integer" />
<!-- will contain bitmask as integer, 00(int=0) not a workgroup, 01(int=1) is workgroup
but not active, 11(int=3) active workgroup -->
<property name="orgOpenpsaWgtype" type="integer" />

<!-- /Common OpenPSA properties -->
</type>
Expand All @@ -72,9 +69,6 @@
<property name="orgOpenpsaAccesstype" type="integer" />
<!-- Used to a) distinguish OpenPSA objects in QB b) store object "subtype" (project vs task etc) -->
<property name="orgOpenpsaObtype" type="integer" />
<!-- will contain bitmask as integer, 00(int=0) not a workgroup, 01(int=1) is workgroup
but not active, 11(int=3) active workgroup -->
<property name="orgOpenpsaWgtype" type="integer" />

<!-- /Common OpenPSA properties -->
</type>
Expand Down Expand Up @@ -109,9 +103,6 @@

<!-- Shortcut for various ACL scenarios -->
<property name="orgOpenpsaAccesstype" type="integer" />
<!-- will contain bitmask as integer, 00(int=0) not a workgroup, 01(int=1) is workgroup
but not active, 11(int=3) active workgroup -->
<property name="orgOpenpsaWgtype" type="integer" />

<!-- /Common OpenPSA properties -->
</type>
Expand Down
3 changes: 0 additions & 3 deletions schemas/org_openpsa_directmarketing.xml
Expand Up @@ -14,9 +14,6 @@
<property name="orgOpenpsaAccesstype" type="integer" />
<!-- Used to a) distinguish OpenPSA objects in QB b) store object "subtype" (project vs task etc) -->
<property name="orgOpenpsaObtype" type="integer" />
<!-- will contain bitmask as integer, 00(int=0) not a workgroup, 01(int=1) is workgroup
but not active, 11(int=3) active workgroup -->
<property name="orgOpenpsaWgtype" type="integer" />
<!-- The "owner" workgroup of this object -->
<property name="orgOpenpsaOwnerWg" type="string" />

Expand Down
9 changes: 0 additions & 9 deletions schemas/org_openpsa_documents.xml
Expand Up @@ -30,15 +30,6 @@
Shortcut for various ACL scenarios
</description>
</property>
<property name="orgOpenpsaWgtype" type="integer">
<description>
will contain bitmask as integer

- 00(int=0) not a workgroup
- 01(int=1) is workgroup but not active
- 11(int=3) active workgroup
</description>
</property>
<property name="orgOpenpsaOwnerWg" type="string">
<description>
The "owner" workgroup of this object
Expand Down
18 changes: 0 additions & 18 deletions schemas/org_openpsa_projects.xml
Expand Up @@ -39,15 +39,6 @@
Shortcut for various ACL scenarios
</description>
</property>
<property name="orgOpenpsaWgtype" type="integer">
<description>
will contain bitmask as integer

- 00(int=0) not a workgroup
- 01(int=1) is workgroup but not active
- 11(int=3) active workgroup
</description>
</property>
<property name="orgOpenpsaOwnerWg" type="string">
<description>
The "owner" workgroup of this object
Expand Down Expand Up @@ -106,15 +97,6 @@
Used to a) distinguish OpenPSA objects in QB b) store object "subtype" (project vs task etc)
</description>
</property>
<property name="orgOpenpsaWgtype" type="integer">
<description>
will contain bitmask as integer

- 00(int=0) not a workgroup
- 01(int=1) is workgroup but not active
- 11(int=3) active workgroup
</description>
</property>
<property name="orgOpenpsaOwnerWg" type="string">
<description>
The "owner" workgroup of this object
Expand Down
1 change: 0 additions & 1 deletion test/midcom/helper/__files/task.xml
Expand Up @@ -21,7 +21,6 @@
<title><![CDATA[Test entry *.* 1]]></title>
<orgOpenpsaObtype>6002</orgOpenpsaObtype>
<priority>3</priority>
<orgOpenpsaWgtype>0</orgOpenpsaWgtype>
<status>6500</status>
<invoicedHours>0</invoicedHours>
<end>1305842399</end>
Expand Down
1 change: 0 additions & 1 deletion test/midcom/helper/exporter/xmlTest.php
Expand Up @@ -113,7 +113,6 @@ private function _get_data_array()
'title' => 'Test entry *.* 1',
'orgOpenpsaObtype' => '6002',
'priority' => '3',
'orgOpenpsaWgtype' => '',
'status' => '6500',
'invoicedHours' => '',
'end' => '1305842399',
Expand Down
1 change: 0 additions & 1 deletion tools/migration_helpers/project_converter.php
Expand Up @@ -262,7 +262,6 @@ private function _create_from_project()
'invoicedHours' => 'invoicedHours',
'invoiceableHours' => 'invoiceableHours',
'orgOpenpsaAccesstype' => 'orgOpenpsaAccesstype',
'orgOpenpsaWgtype' => 'orgOpenpsaWgtype',
'orgOpenpsaOwnerWg' => 'orgOpenpsaOwnerWg',
];
foreach ($property_map as $source => $destination) {
Expand Down
9 changes: 0 additions & 9 deletions tools/schemas_for_project_migration.xml
Expand Up @@ -74,15 +74,6 @@
Used to a) distinguish OpenPSA objects in QB b) store object "subtype" (project vs task etc)
</description>
</property>
<property name="orgOpenpsaWgtype" type="integer">
<description>
will contain bitmask as integer

- 00(int=0) not a workgroup
- 01(int=1) is workgroup but not active
- 11(int=3) active workgroup
</description>
</property>
<property name="orgOpenpsaOwnerWg" type="string">
<description>
The "owner" workgroup of this object
Expand Down

0 comments on commit fc9e64b

Please sign in to comment.