[ 紐づけマスタを操作するトレイト(共通) ]
紐づけマスタコントローラ側でuseする
package |
Default |
---|
deleteWithRelation(\SCC\Api\Controller\Behaviors\unknown $params, string $mode = "", string $target_cd = "") : string
throws |
---|
\SCC\Api\Controller\Behaviors\unknown
string
string
string
getChildByClassCd( $params, string $mode = "", string $parent_cd = "", string $class_cd = "") : array
throws |
---|
APIパラメータ
string
更新モード
string
親コード
string
分類コード
array
API結果情報
getChildCodeFieldName() : string
string
子コードのフィールド名
getChildListByClassCd( $params, string $mode = "", string $parent_cd = "", string $class_cd = "") : array
throws |
---|
APIパラメータ
string
更新モード
string
親コード
string
分類コード
array
マスタ情報
getClassCodeFieldName() : string
string
分類コードのフィールド名
getClassModel() : \SCC\Api\Model\Extend\CommonModel
getLevelFieldName() : string
string
階層差のフィールド名
getMainModel() : \SCC\Api\Model\Extend\CommonModel
getMainModelCodeFieldName() : string
string
メインModelのユニークコードのフィールド名
getParentCodeFieldName() : string
string
親コードのフィールド名
getRelationControlModel() : \SCC\Api\Model\Extend\CommonModel
registWithRelation(array $params, string $mode = "", string $parent_cd = "") : array
throws |
---|
array
登録情報
string
更新モード(未使用)
string
親コード(未指定時は自身がTOPの階層となる)
array
API結果情報
updateChildByClassExecute( $params, string $mode = "", string $parent_cd = "", string $class_cd = "") : array
throws |
---|
APIパラメータ
string
更新モード
string
親コード
string
分類コード
array
更新されたレコードのIDのリスト