commerce_option_set.inc in Commerce Product Option 7
File
includes/commerce_option_set.incView source
<?php
class CommerceOptionSet extends Entity {
public $id;
public $set_id;
public $status;
public $name;
public $description;
public function __construct($values = array()) {
parent::__construct($values, 'commerce_option_set');
}
/**
* Returns whether the profile type is locked, thus may not be deleted or renamed.
*
* Profile types provided in code are automatically treated as locked, as well
* as any fixed profile type.
*/
public function isLocked() {
return isset($this->status) && empty($this->is_new) && ($this->status & ENTITY_IN_CODE || $this->status & ENTITY_FIXED);
}
}
Classes
Name | Description |
---|---|
CommerceOptionSet |