public function fcComplete::save in Field Complete 7
File
- ./
fc.inc, line 105 - Field Complete - Provides field-based completeness for any entity - class.
Class
- fcComplete
- @file Field Complete - Provides field-based completeness for any entity - class.
Code
public function save($skipIfExists = FALSE) {
db_merge('fc')
->key(array(
'entity_type' => $this->entity_type,
'entity_id' => $this->id,
'revision_id' => $this->revision_id,
))
->fields(array(
'complete' => empty($this->complete) ? 0 : 1,
'percentage' => $this->percentage,
'completeness' => serialize($this->completeness),
))
->execute();
}