Files
OMS/app/ome/lib/operation/organization.php
2025-12-28 23:13:25 +08:00

34 lines
761 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/**
* Copyright © ShopeX http://www.shopex.cn. All rights reserved.
* See LICENSE file for license details.
*/
class ome_operation_organization{
/**
* 获取OrgOps
* @param mixed $org_id ID
* @return mixed 返回结果
*/
public function getOrgOps($org_id){
if(!$org_id){
return array();
}
$ops = array();
$orgOpsObj = app::get('ome')->model("operation_ops");
$orgOpsInfo = $orgOpsObj->getList('*', array('org_id' => $org_id), 0, -1);
if($orgOpsInfo){
foreach($orgOpsInfo as $opInfo){
$ops[] = $opInfo['op_id'];
}
return $ops;
}else{
return array();
}
}
}