Get accounts children

@return array
An array of arrays as follows: array( $id0, $id1,…)
335169
public function getLedgerAccountChildrenIds()
  {
    $ids = array();

    $this->Account->byOrganization($this->AuthenticationManager->getCurrentUserOrganizationId())->each(function($Account) use (&$ids)
    {
      if(!empty($Account->is_general_ledger_account))
      {
        array_push($ids, $Account->id);
        $ids = array_merge($ids, $this->getAccountChildrenIds($Account->id));
      }
    });

    return $ids;
  }
419959
public function getChildren()
    {
        $children = array();

        // Add the rows
        foreach ($this->entities as $entity) {
            $children[] = new SimpleRow($entity, $this->columns);
        }

        return $children;
    }
986926
public function getChildren()
    {
        $nodes = [];
        try {
            $child = $this->firstChild();
            do {
                $nodes[] = $child;
                $child   = $this->nextChild($child->id());
            } while ( ! is_null($child));
        } catch (ChildNotFoundException $e) {
            // we are done looking for children
        }

        return $nodes;
    }
1193403
function children($idx=-1)
    {
        if ($idx===-1)
        {
            return $this->children;
        }
        if (isset($this->children[$idx]))
        {
            return $this->children[$idx];
        }
        return null;
    }
1286433
public function getSiblings() {
        $parent = $this->getParent();
        if (is_null($parent)) {
            // This is the root node.
            return [];
        }

        $children = $parent->getChildren();
        $index = array_search($this, $children);
        unset($children[$index]);
        return $children;
    }
1209640
public function getChildren()
    {
        $objs = $this->carddavBackend->getCards($this->addressBookInfo['id']);
        $children = [];
        foreach ($objs as $obj) {
            $obj['acl'] = $this->getChildACL();
            $children[] = new Card($this->carddavBackend, $this->addressBookInfo, $obj);
        }

        return $children;
    }
414618
public function getChildren()
    {
        $objs = $this->caldavBackend->getCalendarObjects($this->calendarInfo['id']);
        $children = [];
        foreach ($objs as $obj) {
            $obj['acl'] = $this->getChildACL();
            $children[] = new CalendarObject($this->caldavBackend, $this->calendarInfo, $obj);
        }

        return $children;
    }
140415
public function collectChildren()
    {
        if ($this->hasChildrenRelation()) {
            $result = $this->getRelation($this->getChildrenRelationIndex());
        } else {
            $result = $this->children();
        }

        return $result;
    }
1138628
public function getChildren()
    {
        $nodes = [];
        $iterator = new \FilesystemIterator(
            $this->path,
            \FilesystemIterator::CURRENT_AS_SELF
          | \FilesystemIterator::SKIP_DOTS
        );

        foreach ($iterator as $entry) {
            $nodes[] = $this->getChild($entry->getFilename());
        }

        return $nodes;
    }
255515
private function getParentAndChildrenEntities() {
        $parentEntities = array();
        $childrenEntities = array();
        foreach($this->getModelBuilder()->getRelationships() as $relationship) {
            if($relationship->isPlural()) {
                $parentEntities[] = $relationship->getAlias() . '.*';
            } else {
                $childrenEntities[] = $relationship->getAlias() . '.*';
            }
        }

        return array($parentEntities, $childrenEntities);
    }
1152889
public function getSocialAccounts()
    {
        $connected = [];
        /** @var UserSocialAccount[] $accounts */
        $accounts = $this->hasMany(UserSocialAccount::class, ['user_id' => 'id'])->all();
        /**
         * @var UserSocialAccount $account
         */
        foreach ($accounts as $account) {
            $connected[$account->provider] = $account;
        }

        return $connected;
    }
416824
def __get_all_child_accounts_as_array(self, account: Account) -> List[Account]:
        
        result = []
        # ignore placeholders ? - what if a brokerage account has cash/stocks division?
        # if not account.placeholder:
        # continue
        result.append(account)

        for child in account.children:
            sub_accounts = self.__get_all_child_accounts_as_array(child)
            result += sub_accounts

        return result
1216368
public function getChildren() 
    {
        if (!$this->_children) { 

			$this->_children = new Iterator\Catalog\Children( $this );          
        
        }
        return $this->_children;
    }
161655
public function Children() {
        if(!(isset($this->_cache_children) && $this->_cache_children)) {
            $result=$this->owner->stageChildren(false);
            if(isset($result)) {
                $this->_cache_children=new ArrayList();
                foreach($result as $child) {
                    if($child->canView()) {
                        $this->_cache_children->push($child);
                    }
                }
            }
        }
        return $this->_cache_children;
    }
260704
public function getChildren()
    {
        if (isset($this->relations['children'])) {
            return $this->relations['children'];
        }

        $children = $this->getAttribute('children');

        return $children === null ? [] : $children;
    }
11662
public function children()
    {
        if ($this->readonlyCollection === null) {
            $this->readonlyCollection = new ReadonlyObjectCollection(
                $this->writableChildren()
            );
        }

        return $this->readonlyCollection;
    }
72797
public function getChildren()
    {
        $children = array();

        $wpTerms = get_terms($this->taxonomy->getName(), array(
            'hide_empty' => false,
            'parent'     => (int) $this->getId()
        ));

        foreach ($wpTerms as $termData) {
            $children[] = $this->termFactory->create($termData, $this->taxonomy);
        }

        return $children;
    }