To call I would do something like:
$headline = McSelectJustOne Field::callData store("cbHeadli ne");
Is this the correct use of the static keyword, to implement a
Singleton design?
class McSelectJustOne Field extends McSelect {
/**
* 11-21-03 - getter
* @param - $infoToBeSought , in this case, is the name of the field
whose contents are wanted.
* returns mixed (could be string or integer or whatever was in the
field)
function static callDatastore($ infoToBeSought) {
$this->setQueryObject ("GetJustOneFie ld");
$this->setInfoToBeSou ght($infoToBeSo ught);
$this->getInfo();
$row = $this->getRowAsArrayW ithStringIndex( $this->dsResultPointe r);
$field = $row[0];
return $field;
}
}
$headline = McSelectJustOne Field::callData store("cbHeadli ne");
Is this the correct use of the static keyword, to implement a
Singleton design?
class McSelectJustOne Field extends McSelect {
/**
* 11-21-03 - getter
* @param - $infoToBeSought , in this case, is the name of the field
whose contents are wanted.
* returns mixed (could be string or integer or whatever was in the
field)
function static callDatastore($ infoToBeSought) {
$this->setQueryObject ("GetJustOneFie ld");
$this->setInfoToBeSou ght($infoToBeSo ught);
$this->getInfo();
$row = $this->getRowAsArrayW ithStringIndex( $this->dsResultPointe r);
$field = $row[0];
return $field;
}
}
Comment