public function __invoke($identityArray) { lineOut(__METHOD__); // lineOut($identityArray); $identities = sortByKeyLength($identityArray); // lineOut($identities); if (!isAssociativeArray($identities)) { $identities = sortByLength($identityArray); } // lineOut($identities); $this->outPorts['out']->send($identities); $this->outPorts['out']->disconnect(); }
private function addOrderCondition(array $orderby) { if (!isAssociativeArray($orderby)) { return false; } foreach ($orderby as $field => $value) { $this->db->order_by($field, $value); } return true; }